Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",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.0009086/0.0009087, allocations: 183.7 kB / 8.138 MB, free: 2.188 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.055/1.055, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0008475/0.0008475, allocations: 108.2 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08747/0.08835, allocations: 55.81 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.2572, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07418/0.3314, allocations: 77.43 MB / 464.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001663/0.3316, allocations: 67.97 kB / 464.5 MB, free: 9.285 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.01014/0.3417, allocations: 4.075 MB / 468.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.3418, allocations: 12 kB / 468.6 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.185e-05/0.3418, allocations: 24.56 kB / 468.6 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.342, allocations: 231.3 kB / 468.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.3421, allocations: 4 kB / 468.8 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.3421, allocations: 12 kB / 468.9 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002351/0.3423, allocations: 112.8 kB / 469 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002754/0.3426, allocations: 176.5 kB / 469.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3426, allocations: 3.906 kB / 469.1 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.3427, allocations: 0 / 469.1 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3427, allocations: 11.98 kB / 469.1 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.3437, allocations: 0.7592 MB / 469.9 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.3439, allocations: 127.4 kB / 470 MB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.3441, allocations: 93.7 kB / 470.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.3441, allocations: 4 kB / 470.1 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.3441, allocations: 30.56 kB / 470.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.412e-06/0.3442, allocations: 0 / 470.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009969/0.3452, allocations: 0.7193 MB / 470.9 MB, free: 2.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.3452, allocations: 85.05 kB / 471 MB, free: 2.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.3453, allocations: 138 kB / 471.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.3453, allocations: 25.7 kB / 471.1 MB, free: 2.383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.3454, allocations: 128.7 kB / 471.2 MB, free: 2.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.3455, allocations: 90.66 kB / 471.3 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.3455, allocations: 4 kB / 471.3 MB, free: 2.156 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.3456, allocations: 326.8 kB / 471.7 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.635e-05/0.3457, allocations: 51.94 kB / 471.7 MB, free: 1.777 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.3458, allocations: 93.48 kB / 471.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.3459, allocations: 58.89 kB / 471.9 MB, free: 1.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3459, allocations: 4 kB / 471.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002914/0.3462, allocations: 201.2 kB / 472.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3462, allocations: 7.125 kB / 472.1 MB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3462, allocations: 4 kB / 472.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.3462, allocations: 0 / 472.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.3465, allocations: 68.56 kB / 472.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.3465, allocations: 0 / 472.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.3467, allocations: 19.98 kB / 472.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.3467, allocations: 10.06 kB / 472.2 MB, free: 1.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.237e-05/0.3468, allocations: 108.9 kB / 472.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.405e-05/0.3468, allocations: 19.81 kB / 472.3 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.333e-05/0.3469, allocations: 21.58 kB / 472.3 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3469, allocations: 12.64 kB / 472.3 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3469, allocations: 0 / 472.3 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3469, allocations: 8 kB / 472.3 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006425/0.3476, allocations: 0.5167 MB / 472.8 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3476, allocations: 4 kB / 472.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.3479, allocations: 56.06 kB / 472.9 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3479, allocations: 4 kB / 472.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.3479, allocations: 4 kB / 472.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3479, allocations: 8.859 kB / 472.9 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3479, allocations: 4 kB / 472.9 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004467/0.3484, allocations: 490.3 kB / 473.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006275/0.349, allocations: 0.9263 MB / 474.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.3491, allocations: 100.9 kB / 474.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.3491, allocations: 1.062 kB / 474.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3493, allocations: 8 kB / 474.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.3494, allocations: 19.88 kB / 474.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3494, allocations: 8 kB / 474.5 MB, free: 14.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.543e-05/0.3494, allocations: 107.3 kB / 474.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008442/0.3503, allocations: 47.94 kB / 474.6 MB, free: 14.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.3504, allocations: 115.1 kB / 474.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.3507, allocations: 143.8 kB / 474.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.3507, allocations: 0 / 474.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.3508, allocations: 79.92 kB / 474.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.3511, allocations: 24.3 kB / 475 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008725/0.352, allocations: 0.5086 MB / 475.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/0.3523, allocations: 0.7902 MB / 476.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3524, allocations: 0 / 476.3 MB, free: 12.96 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat