Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",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 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 168.9 kB / 8.469 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.07/1.07, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0009447/0.0009447, allocations: 83.28 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1487/0.1497, allocations: 52.96 MB / 315 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06215/0.2118, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1974/0.4093, allocations: 78.43 MB / 441.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001642/0.4095, allocations: 71.3 kB / 441.1 MB, free: 10.7 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.01695/0.4265, allocations: 7.082 MB / 448.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.4265, allocations: 11.86 kB / 448.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/0.4266, allocations: 39.03 kB / 448.3 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.4269, allocations: 257.7 kB / 448.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.4269, allocations: 7.688 kB / 448.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.427, allocations: 19.28 kB / 448.5 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002919/0.4273, allocations: 180.4 kB / 448.7 MB, free: 8.992 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.4276, allocations: 199.6 kB / 448.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.4276, allocations: 0 / 448.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.4276, allocations: 0 / 448.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.4276, allocations: 7.688 kB / 448.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.4289, allocations: 0.9568 MB / 449.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.4291, allocations: 132.4 kB / 450 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.4293, allocations: 98.28 kB / 450.1 MB, free: 8.246 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.4293, allocations: 7.594 kB / 450.1 MB, free: 8.246 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.4294, allocations: 34.44 kB / 450.1 MB, free: 8.207 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.4294, allocations: 0 / 450.1 MB, free: 8.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003256/0.4326, allocations: 1.099 MB / 451.2 MB, free: 7.688 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.593e-05/0.4327, allocations: 55.25 kB / 451.3 MB, free: 7.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.4328, allocations: 189.1 kB / 451.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.4328, allocations: 25.7 kB / 451.5 MB, free: 7.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.4329, allocations: 167 kB / 451.7 MB, free: 7.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.137e-05/0.4329, allocations: 111.8 kB / 451.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.433, allocations: 3.781 kB / 451.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.667e-05/0.433, allocations: 336.9 kB / 452.1 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.4332, allocations: 95.59 kB / 452.2 MB, free: 6.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.4333, allocations: 141.2 kB / 452.3 MB, free: 6.863 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.4335, allocations: 114.2 kB / 452.5 MB, free: 6.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4335, allocations: 0 / 452.5 MB, free: 6.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001342/0.4348, allocations: 491.2 kB / 452.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.4349, allocations: 3.844 kB / 452.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4349, allocations: 0 / 452.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007866/0.4357, allocations: 192.6 kB / 453.1 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.4359, allocations: 58.12 kB / 453.2 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003471/0.4394, allocations: 3.578 MB / 456.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.4397, allocations: 7.781 kB / 456.8 MB, free: 3.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.4397, allocations: 14.89 kB / 456.8 MB, free: 3.836 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 7.79e-05/0.4398, allocations: 112.7 kB / 456.9 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.4398, allocations: 23.28 kB / 456.9 MB, free: 3.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.018e-05/0.4399, allocations: 35.7 kB / 456.9 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.4399, allocations: 3.875 kB / 457 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4399, allocations: 3.906 kB / 457 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4399, allocations: 4 kB / 457 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.4416, allocations: 0.8639 MB / 457.8 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4417, allocations: 0 / 457.8 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.4419, allocations: 34.7 kB / 457.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.4426, allocations: 194.6 kB / 458 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.4426, allocations: 0 / 458 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003806/0.4465, allocations: 3.575 MB / 461.6 MB, free: 16.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4465, allocations: 0 / 461.6 MB, free: 16.39 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001484/0.448, allocations: 0.6835 MB / 462.3 MB, free: 16.11 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001763/0.4497, allocations: 1.185 MB / 463.5 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.4498, allocations: 99.72 kB / 463.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.4499, allocations: 3.688 kB / 463.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.4501, allocations: 7.656 kB / 463.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.4502, allocations: 19.22 kB / 463.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.4502, allocations: 11.47 kB / 463.6 MB, free: 15.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001088/0.4503, allocations: 152 kB / 463.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001105/0.4514, allocations: 91.44 kB / 463.9 MB, free: 15.24 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/0.4516, allocations: 109.1 kB / 464 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006979/0.4523, allocations: 482 kB / 464.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4523, allocations: 0 / 464.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004117/0.4527, allocations: 358.9 kB / 464.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.453, allocations: 11.83 kB / 464.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.454, allocations: 492.6 kB / 465.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.4544, allocations: 0.8048 MB / 466.1 MB, free: 13.67 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4544, allocations: 0 / 466.1 MB, free: 13.67 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat