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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008287/0.0008288, allocations: 82.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.03e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09771, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.464, allocations: 76.46 MB / 439.6 MB, free: 2.918 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4643, allocations: 68.77 kB / 439.7 MB, free: 2.883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009546/0.4739, allocations: 3.126 MB / 442.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4739, allocations: 4 kB / 442.8 MB, free: 272 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.4739, allocations: 7.938 kB / 442.8 MB, free: 264 kB / 314.7 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.0006815/0.4746, allocations: 433 kB / 443.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4747, allocations: 12.03 kB / 443.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.019e-05/0.4748, allocations: 15.81 kB / 443.3 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.475, allocations: 198.9 kB / 443.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.475, allocations: 7.953 kB / 443.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.475, allocations: 8 kB / 443.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001523/0.4752, allocations: 60.98 kB / 443.6 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.4754, allocations: 126.6 kB / 443.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4754, allocations: 0 / 443.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.4755, allocations: 4 kB / 443.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.4755, allocations: 4 kB / 443.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00095/0.4764, allocations: 486.3 kB / 444.2 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.4766, allocations: 73.16 kB / 444.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.4767, allocations: 49.22 kB / 444.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.4768, allocations: 0 / 444.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4768, allocations: 37.81 kB / 444.3 MB, free: 14.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.915e-06/0.4768, allocations: 7.984 kB / 444.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002262/0.477, allocations: 84.94 kB / 444.4 MB, free: 14.69 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.4771, allocations: 102.8 kB / 444.5 MB, free: 14.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.4772, allocations: 140.4 kB / 444.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.4773, allocations: 25.7 kB / 444.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.4774, allocations: 118.8 kB / 444.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.4774, allocations: 23.41 kB / 444.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.4774, allocations: 3.938 kB / 444.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.4776, allocations: 329.5 kB / 445.1 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.524e-05/0.4777, allocations: 19 kB / 445.2 MB, free: 13.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.08e-05/0.4777, allocations: 68.02 kB / 445.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.916e-05/0.4778, allocations: 26.48 kB / 445.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4778, allocations: 0 / 445.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001867/0.478, allocations: 114.1 kB / 445.4 MB, free: 13.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.478, allocations: 8 kB / 445.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4781, allocations: 0 / 445.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.4781, allocations: 4 kB / 445.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005979/0.4787, allocations: 87.8 kB / 445.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.4801, allocations: 1.332 MB / 446.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.4803, allocations: 28.02 kB / 446.8 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.4803, allocations: 7.984 kB / 446.8 MB, free: 12.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.000105/0.4804, allocations: 101 kB / 446.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001451/0.4806, allocations: 82.91 kB / 447 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.4806, allocations: 7.906 kB / 447 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.4809, allocations: 126.7 kB / 447.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4809, allocations: 3.938 kB / 447.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.41e-07/0.4809, allocations: 4 kB / 447.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.481, allocations: 0 / 447.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005711/0.4815, allocations: 409.4 kB / 447.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.4816, allocations: 4 kB / 447.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.4817, allocations: 28.02 kB / 447.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002561/0.482, allocations: 32.64 kB / 447.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.482, allocations: 7.938 kB / 447.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.4831, allocations: 1.238 MB / 448.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4831, allocations: 0 / 448.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.4835, allocations: 269.3 kB / 449.1 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.4836, allocations: 92.36 kB / 449.2 MB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.4836, allocations: 4.031 kB / 449.2 MB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.4838, allocations: 23.98 kB / 449.2 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.4838, allocations: 11.94 kB / 449.2 MB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.4838, allocations: 0 / 449.2 MB, free: 9.719 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.629e-05/0.4839, allocations: 114.3 kB / 449.4 MB, free: 9.621 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4839, allocations: 0 / 449.4 MB, free: 9.621 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002922/0.4842, allocations: 36 kB / 449.4 MB, free: 9.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete 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.0007273/0.4849, allocations: 0.8625 MB / 450.2 MB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.4855, allocations: 114.5 kB / 450.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4855, allocations: 0 / 450.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.4858, allocations: 141.2 kB / 450.5 MB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.486, allocations: 7.75 kB / 450.5 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.4875, allocations: 464.4 kB / 451 MB, free: 8.004 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.4879, allocations: 0.7119 MB / 451.7 MB, free: 7.266 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.459e-05/0.4879, allocations: 12.55 kB / 451.7 MB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.038e-05/0.488, allocations: 44.36 kB / 451.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.488, allocations: 0 / 451.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.5091, allocations: 2.372 MB / 454.1 MB, free: 4.867 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.5094, allocations: 148 kB / 454.2 MB, free: 4.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.133, allocations: 4.031 kB / 454.2 MB, free: 4.672 MB / 330.7 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) 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