Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",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.0009442/0.0009442, allocations: 181.2 kB / 8.133 MB, free: 2.195 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.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009719/0.0009721, allocations: 101.7 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09091/0.09193, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.2821, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08126/0.3634, allocations: 76.18 MB / 463.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/0.3636, allocations: 71.91 kB / 463.2 MB, free: 10.61 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.006645/0.3703, allocations: 2.332 MB / 465.6 MB, free: 8.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3703, allocations: 8 kB / 465.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.3704, allocations: 15.81 kB / 465.6 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.3706, allocations: 199.4 kB / 465.8 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3707, allocations: 7.906 kB / 465.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.3707, allocations: 8 kB / 465.8 MB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.603e-05/0.3708, allocations: 27.94 kB / 465.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.3709, allocations: 65.61 kB / 465.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.3709, allocations: 0 / 465.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3709, allocations: 5.75 kB / 465.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.3709, allocations: 0 / 465.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.3714, allocations: 384.5 kB / 466.3 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.921e-05/0.3715, allocations: 62.52 kB / 466.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.07e-05/0.3716, allocations: 21.02 kB / 466.4 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.3716, allocations: 0 / 466.4 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.3716, allocations: 34.56 kB / 466.4 MB, free: 7.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.3716, allocations: 1.969 kB / 466.4 MB, free: 7.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001655/0.3718, allocations: 69.53 kB / 466.5 MB, free: 7.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.3718, allocations: 51.41 kB / 466.5 MB, free: 7.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.158e-05/0.3719, allocations: 127 kB / 466.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.372, allocations: 29.7 kB / 466.7 MB, free: 7.008 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.372, allocations: 100.5 kB / 466.8 MB, free: 6.906 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.372, allocations: 15.72 kB / 466.8 MB, free: 6.891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.3721, allocations: 3.938 kB / 466.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/0.3722, allocations: 322.8 kB / 467.1 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.933e-05/0.3722, allocations: 12 kB / 467.1 MB, free: 6.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.52e-05/0.3722, allocations: 12 kB / 467.1 MB, free: 6.539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.693e-05/0.3723, allocations: 19.98 kB / 467.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3723, allocations: 0 / 467.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001128/0.3724, allocations: 76.41 kB / 467.2 MB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.3724, allocations: 4 kB / 467.2 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.3724, allocations: 0 / 467.2 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.3724, allocations: 0 / 467.2 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.3727, allocations: 51.81 kB / 467.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.3727, allocations: 0 / 467.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.537e-05/0.3727, allocations: 7.938 kB / 467.3 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.3728, allocations: 0.8125 kB / 467.3 MB, free: 6.379 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/0.3728, allocations: 108.9 kB / 467.4 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.3729, allocations: 11.81 kB / 467.4 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.3729, allocations: 16.17 kB / 467.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3729, allocations: 0 / 467.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3729, allocations: 0 / 467.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.373, allocations: 0 / 467.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.3731, allocations: 170.2 kB / 467.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3731, allocations: 1.5 kB / 467.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.3733, allocations: 27.97 kB / 467.6 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3733, allocations: 0 / 467.6 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.3733, allocations: 3.906 kB / 467.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3733, allocations: 4 kB / 467.6 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3733, allocations: 2.438 kB / 467.6 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001854/0.3735, allocations: 179.4 kB / 467.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002882/0.3738, allocations: 0.5801 MB / 468.4 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.3739, allocations: 85.02 kB / 468.5 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.3739, allocations: 0 / 468.5 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.374, allocations: 7.984 kB / 468.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.374, allocations: 3.906 kB / 468.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.374, allocations: 0 / 468.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.861e-05/0.3741, allocations: 105.6 kB / 468.6 MB, free: 5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007838/0.3749, allocations: 20 kB / 468.6 MB, free: 4.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001042/0.375, allocations: 107.1 kB / 468.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.756e-05/0.3751, allocations: 35.98 kB / 468.7 MB, free: 4.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.3751, allocations: 4 kB / 468.7 MB, free: 4.824 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.057e-05/0.3752, allocations: 12 kB / 468.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.3754, allocations: 27.17 kB / 468.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004839/0.3759, allocations: 176.4 kB / 468.9 MB, free: 4.594 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.3762, allocations: 0.7231 MB / 469.7 MB, free: 3.844 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3762, allocations: 0 / 469.7 MB, free: 3.844 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat