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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 182.7 kB / 8.132 MB, free: 2.164 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009363/0.0009367, allocations: 94.58 kB / 280.8 MB, free: 1.297 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0916/0.09257, allocations: 55.82 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.2766, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07783/0.3545, allocations: 77.59 MB / 464.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.3547, allocations: 76.47 kB / 464.7 MB, free: 9.133 MB / 346.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.01005/0.3648, allocations: 3.375 MB / 468 MB, free: 5.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3648, allocations: 8 kB / 468 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.3649, allocations: 15.81 kB / 468.1 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.365, allocations: 192.3 kB / 468.3 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3651, allocations: 8 kB / 468.3 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.3651, allocations: 11.94 kB / 468.3 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001482/0.3653, allocations: 59.98 kB / 468.3 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.3655, allocations: 125.7 kB / 468.5 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3655, allocations: 0 / 468.5 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.3655, allocations: 6.438 kB / 468.5 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3655, allocations: 4 kB / 468.5 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007113/0.3662, allocations: 483.8 kB / 468.9 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.3663, allocations: 65.64 kB / 469 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.3665, allocations: 45.08 kB / 469 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.3665, allocations: 0 / 469 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.3665, allocations: 50.39 kB / 469.1 MB, free: 4.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.3665, allocations: 0 / 469.1 MB, free: 4.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002082/0.3668, allocations: 79.86 kB / 469.2 MB, free: 4.477 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.3668, allocations: 102.8 kB / 469.3 MB, free: 4.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3669, allocations: 136.1 kB / 469.4 MB, free: 4.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.3669, allocations: 30.55 kB / 469.4 MB, free: 4.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.367, allocations: 107.9 kB / 469.5 MB, free: 4.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.367, allocations: 27.56 kB / 469.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.367, allocations: 0 / 469.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.3671, allocations: 326.8 kB / 469.9 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.208e-05/0.3672, allocations: 31.98 kB / 469.9 MB, free: 3.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.193e-05/0.3673, allocations: 57.16 kB / 470 MB, free: 3.609 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.089e-05/0.3673, allocations: 31.98 kB / 470 MB, free: 3.578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3673, allocations: 0 / 470 MB, free: 3.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000208/0.3676, allocations: 119.7 kB / 470.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.3676, allocations: 4 kB / 470.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3676, allocations: 4 kB / 470.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3676, allocations: 0 / 470.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.3682, allocations: 83.86 kB / 470.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.3694, allocations: 1.331 MB / 471.5 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.3696, allocations: 23.86 kB / 471.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.3697, allocations: 8.625 kB / 471.6 MB, free: 1.891 MB / 346.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 8.192e-05/0.3698, allocations: 112 kB / 471.7 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.3698, allocations: 15.8 kB / 471.7 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003092/0.3701, allocations: 115.1 kB / 471.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3701, allocations: 4 kB / 471.8 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3701, allocations: 0.8438 kB / 471.8 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3702, allocations: 8.016 kB / 471.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005314/0.3707, allocations: 405.4 kB / 472.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3707, allocations: 0 / 472.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.3709, allocations: 23.98 kB / 472.2 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.3711, allocations: 48.7 kB / 472.3 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3711, allocations: 0 / 472.3 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009816/0.3721, allocations: 1.238 MB / 473.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3721, allocations: 3.906 kB / 473.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003941/0.3725, allocations: 269.2 kB / 473.8 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005288/0.3731, allocations: 0.6554 MB / 474.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.3732, allocations: 88.95 kB / 474.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.007e-05/0.3732, allocations: 8.719 kB / 474.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.3734, allocations: 19.98 kB / 474.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.3734, allocations: 7.984 kB / 474.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.3735, allocations: 0 / 474.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.317e-05/0.3735, allocations: 115.3 kB / 474.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008689/0.3744, allocations: 39.91 kB / 474.7 MB, free: 14.49 MB / 362.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.0001337/0.3746, allocations: 100.4 kB / 474.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008912/0.3755, allocations: 155.9 kB / 475 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3755, allocations: 0 / 475 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.3757, allocations: 133.8 kB / 475.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.3759, allocations: 4 kB / 475.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.3773, allocations: 438.7 kB / 475.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002805/0.3776, allocations: 0.7348 MB / 476.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3776, allocations: 0 / 476.3 MB, free: 12.86 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