Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 102.1 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002845, allocations: 4 kB / 351.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2852, allocations: 50.41 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1056/0.3909, allocations: 78.4 MB / 480 MB, free: 2.098 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.3912, allocations: 71.97 kB / 480 MB, free: 2.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01071/0.402, allocations: 3.279 MB / 483.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.402, allocations: 0 / 483.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.402, allocations: 3.938 kB / 483.3 MB, free: 14.74 MB / 362.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.0008282/0.4029, allocations: 458.7 kB / 483.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.4029, allocations: 8.031 kB / 483.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.945e-05/0.403, allocations: 42.55 kB / 483.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.56e-05/0.4031, allocations: 12.12 kB / 483.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.4033, allocations: 200.8 kB / 484 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.4034, allocations: 11.94 kB / 484 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.4034, allocations: 8 kB / 484.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.4038, allocations: 148.1 kB / 484.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4038, allocations: 3.953 kB / 484.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.4038, allocations: 8 kB / 484.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.4038, allocations: 0 / 484.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.4041, allocations: 103.9 kB / 484.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.4052, allocations: 0.5187 MB / 484.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.4056, allocations: 102.5 kB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.4056, allocations: 4 kB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.4056, allocations: 34.56 kB / 485 MB, free: 12.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.4057, allocations: 0 / 485 MB, free: 12.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0005238/0.4062, allocations: 153.5 kB / 485.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/0.4063, allocations: 114.8 kB / 485.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.4065, allocations: 137.1 kB / 485.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.4065, allocations: 29.7 kB / 485.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.4066, allocations: 123.8 kB / 485.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.4067, allocations: 23.66 kB / 485.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.4067, allocations: 0 / 485.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4068, allocations: 326.8 kB / 485.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.407, allocations: 43.97 kB / 485.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.4072, allocations: 76.27 kB / 486 MB, free: 11.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.4073, allocations: 56.09 kB / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4074, allocations: 0 / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004088/0.4078, allocations: 149.8 kB / 486.2 MB, free: 11.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.4078, allocations: 4 kB / 486.2 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4078, allocations: 4.078 kB / 486.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.4078, allocations: 4 kB / 486.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006623/0.4085, allocations: 83.91 kB / 486.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.4103, allocations: 1.39 MB / 487.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.4105, allocations: 31.95 kB / 487.7 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.4105, allocations: 4 kB / 487.7 MB, free: 9.973 MB / 362.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.0001483/0.4107, allocations: 120.8 kB / 487.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.4108, allocations: 15.81 kB / 487.8 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005128/0.4113, allocations: 163.1 kB / 488 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.4113, allocations: 3.953 kB / 488 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.4113, allocations: 3.938 kB / 488 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4113, allocations: 0 / 488 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.4116, allocations: 233.6 kB / 488.2 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4116, allocations: 4 kB / 488.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.4118, allocations: 19.98 kB / 488.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002857/0.4121, allocations: 40.86 kB / 488.3 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.4121, allocations: 3.984 kB / 488.3 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.4133, allocations: 1.304 MB / 489.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4134, allocations: 4.25 kB / 489.6 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006734/0.414, allocations: 296.2 kB / 489.9 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.912e-05/0.4141, allocations: 96.88 kB / 490 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.4142, allocations: 7.953 kB / 490 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.4143, allocations: 15.98 kB / 490 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.4144, allocations: 7.984 kB / 490 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.4144, allocations: 4.062 kB / 490 MB, free: 7.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.4145, allocations: 122.3 kB / 490.1 MB, free: 7.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4146, allocations: 0 / 490.1 MB, free: 7.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003081/0.4149, allocations: 36 kB / 490.2 MB, free: 7.258 MB / 362.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.001013/0.4159, allocations: 0.838 MB / 491 MB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007539/0.4167, allocations: 151.9 kB / 491.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4167, allocations: 0 / 491.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.417, allocations: 162.7 kB / 491.3 MB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.4172, allocations: 8 kB / 491.3 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.4194, allocations: 1.129 MB / 492.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.4198, allocations: 0.7199 MB / 493.2 MB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.531e-05/0.4199, allocations: 16.39 kB / 493.2 MB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.733e-05/0.42, allocations: 43.42 kB / 493.2 MB, free: 4.074 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.42, allocations: 0 / 493.2 MB, free: 4.074 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05125/0.4712, allocations: 2.858 MB / 496.1 MB, free: 1.406 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000266/0.4716, allocations: 218.8 kB / 496.3 MB, free: 1.164 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/2.227, allocations: 0 / 496.3 MB, free: 1.164 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat