Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 98.36 kB / 16.94 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 186 kB / 17.83 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004705/0.0004705, allocations: 14.34 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09711, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002192/0.09935, allocations: 1.613 MB / 330 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009633/0.1003, allocations: 0.5585 MB / 330.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6e-05/0.1004, allocations: 8 kB / 330.6 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.588e-05/0.1005, allocations: 11.91 kB / 330.6 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.1006, allocations: 47.84 kB / 330.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.1009, allocations: 79.81 kB / 330.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.1011, allocations: 111.8 kB / 330.8 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1012, allocations: 37.47 kB / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.1014, allocations: 71.77 kB / 331 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.1015, allocations: 71.67 kB / 331 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.1016, allocations: 8 kB / 331 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.622e-05/0.1016, allocations: 11.94 kB / 331 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.1016, allocations: 23.91 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.1017, allocations: 49.64 kB / 331.1 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.1018, allocations: 127.9 kB / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1018, allocations: 0 / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1018, allocations: 0 / 331.2 MB, free: 1.156 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1019, allocations: 3.938 kB / 331.2 MB, free: 1.152 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0007159/0.1026, allocations: 446.7 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1026, allocations: 8.031 kB / 331.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.354e-05/0.1027, allocations: 42.55 kB / 331.7 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.1027, allocations: 23.81 kB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000183/0.1029, allocations: 194.8 kB / 331.9 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.103, allocations: 8 kB / 332 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.103, allocations: 11.91 kB / 332 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.1033, allocations: 156 kB / 332.1 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1033, allocations: 4 kB / 332.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1034, allocations: 0 / 332.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1034, allocations: 4 kB / 332.1 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.1036, allocations: 95.94 kB / 332.2 MB, free: 68 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009338/0.1046, allocations: 0.5072 MB / 332.7 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.1049, allocations: 106.5 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.1049, allocations: 3.953 kB / 332.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.1049, allocations: 34.5 kB / 332.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1049, allocations: 0 / 332.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004778/0.1054, allocations: 157.7 kB / 333 MB, free: 15.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.1055, allocations: 102.8 kB / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.1057, allocations: 170 kB / 333.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.1057, allocations: 29.7 kB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.1058, allocations: 119.9 kB / 333.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.1058, allocations: 19.66 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.1058, allocations: 0 / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.106, allocations: 326.8 kB / 333.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1061, allocations: 39.97 kB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1063, allocations: 92.14 kB / 333.9 MB, free: 14.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.1064, allocations: 40.02 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1064, allocations: 4 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003139/0.1067, allocations: 149.4 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1068, allocations: 11.95 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1068, allocations: 0 / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1068, allocations: 0 / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005646/0.1074, allocations: 91.94 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.1088, allocations: 1.405 MB / 335.6 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.109, allocations: 20.14 kB / 335.6 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.109, allocations: 8 kB / 335.6 MB, free: 12.36 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.1091, allocations: 125.8 kB / 335.7 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.1092, allocations: 15.86 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005112/0.1097, allocations: 167.1 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1097, allocations: 0 / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.1097, allocations: 3.938 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1097, allocations: 4.031 kB / 335.9 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.11, allocations: 229.5 kB / 336.2 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.11, allocations: 3.953 kB / 336.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.1102, allocations: 23.98 kB / 336.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.1104, allocations: 40.81 kB / 336.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1104, allocations: 4 kB / 336.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.1115, allocations: 1.296 MB / 337.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1115, allocations: 0 / 337.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005604/0.112, allocations: 304.8 kB / 337.8 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.1121, allocations: 92.95 kB / 337.9 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.1121, allocations: 0 / 337.9 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.1123, allocations: 20.05 kB / 337.9 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.1124, allocations: 11.98 kB / 337.9 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1124, allocations: 4 kB / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.992e-05/0.1125, allocations: 115.2 kB / 338.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1125, allocations: 0 / 338.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1128, allocations: 39.94 kB / 338.1 MB, free: 9.645 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009705/0.1138, allocations: 0.8458 MB / 338.9 MB, free: 8.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.1145, allocations: 151.9 kB / 339.1 MB, free: 8.621 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1145, allocations: 0 / 339.1 MB, free: 8.621 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.1148, allocations: 166.6 kB / 339.3 MB, free: 8.445 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.115, allocations: 8 kB / 339.3 MB, free: 8.438 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.117, allocations: 1.118 MB / 340.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.1173, allocations: 0.7237 MB / 341.1 MB, free: 6.516 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.686e-05/0.1174, allocations: 16.55 kB / 341.1 MB, free: 6.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.189e-05/0.1175, allocations: 39.41 kB / 341.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1175, allocations: 3.938 kB / 341.2 MB, free: 6.457 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.1319, allocations: 2.846 MB / 344 MB, free: 3.621 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.1322, allocations: 225.3 kB / 344.2 MB, free: 3.375 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/1.859, allocations: 3.938 kB / 344.2 MB, free: 3.371 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat