Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_cpp_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.001452/0.001451, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 94.58 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3203, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.4411, allocations: 76.97 MB / 451.6 MB, free: 3.793 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.4414, allocations: 71.97 kB / 451.7 MB, free: 3.723 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01498/0.4564, allocations: 3.139 MB / 454.8 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4564, allocations: 4 kB / 454.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.4565, allocations: 4 kB / 454.8 MB, free: 0.5625 MB / 330.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.001005/0.4575, allocations: 462.7 kB / 455.3 MB, free: 64 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4575, allocations: 15.97 kB / 455.3 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.506e-05/0.4576, allocations: 42.59 kB / 455.3 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.4577, allocations: 11.91 kB / 455.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.4579, allocations: 197.4 kB / 455.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.458, allocations: 11.95 kB / 455.5 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.458, allocations: 8 kB / 455.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004839/0.4585, allocations: 148.1 kB / 455.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4586, allocations: 3.984 kB / 455.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.4586, allocations: 4 kB / 455.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.4586, allocations: 7.984 kB / 455.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.4591, allocations: 99.88 kB / 455.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.4605, allocations: 0.5071 MB / 456.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005159/0.461, allocations: 108.7 kB / 456.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.4611, allocations: 0 / 456.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.4611, allocations: 38.52 kB / 456.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.4611, allocations: 0 / 456.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007923/0.4619, allocations: 161.8 kB / 456.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.462, allocations: 106.8 kB / 456.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.4623, allocations: 145.7 kB / 456.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.4623, allocations: 29.7 kB / 456.9 MB, free: 14.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.4625, allocations: 183.3 kB / 457.1 MB, free: 14.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.4625, allocations: 27.64 kB / 457.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.4625, allocations: 4 kB / 457.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.4627, allocations: 310.8 kB / 457.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.4629, allocations: 47.97 kB / 457.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000309/0.4632, allocations: 78.34 kB / 457.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.4635, allocations: 51.95 kB / 457.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.4635, allocations: 0 / 457.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005838/0.4641, allocations: 145.5 kB / 457.7 MB, free: 13.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.4642, allocations: 8.031 kB / 457.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4642, allocations: 3.953 kB / 457.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4642, allocations: 4 kB / 457.7 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.4653, allocations: 83.91 kB / 457.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.4672, allocations: 1.386 MB / 459.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.4675, allocations: 32.11 kB / 459.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.4676, allocations: 4 kB / 459.2 MB, free: 11.75 MB / 346.7 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.0001594/0.4677, allocations: 117.8 kB / 459.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.4678, allocations: 11.91 kB / 459.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007845/0.4686, allocations: 175 kB / 459.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4686, allocations: 0 / 459.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4686, allocations: 4 kB / 459.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4686, allocations: 0 / 459.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005858/0.4692, allocations: 229.5 kB / 459.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4693, allocations: 0 / 459.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.4697, allocations: 27.98 kB / 459.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.4701, allocations: 44.77 kB / 459.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.4702, allocations: 0 / 459.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.4717, allocations: 1.3 MB / 461.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.4718, allocations: 3.938 kB / 461.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.4728, allocations: 304.4 kB / 461.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.4729, allocations: 93.02 kB / 461.5 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.473, allocations: 0 / 461.5 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.4733, allocations: 19.98 kB / 461.6 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.4733, allocations: 7.984 kB / 461.6 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.4733, allocations: 0 / 461.6 MB, free: 9.188 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001354/0.4735, allocations: 119.2 kB / 461.7 MB, free: 9.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4735, allocations: 4 kB / 461.7 MB, free: 9.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000407/0.4739, allocations: 39.94 kB / 461.7 MB, free: 9.027 MB / 346.7 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.0014/0.4753, allocations: 0.8341 MB / 462.6 MB, free: 8.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.4766, allocations: 151.9 kB / 462.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4766, allocations: 0 / 462.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00049/0.4771, allocations: 166.7 kB / 462.9 MB, free: 7.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.4774, allocations: 8.859 kB / 462.9 MB, free: 7.832 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.4806, allocations: 1.163 MB / 464 MB, free: 6.609 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.481, allocations: 0.7238 MB / 464.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.4811, allocations: 39.42 kB / 464.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4812, allocations: 0 / 464.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.492/2.974, allocations: 2.716 MB / 467.5 MB, free: 3.102 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat