Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",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.001166/0.001166, allocations: 183 kB / 8.134 MB, free: 2.219 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.139/1.139, allocations: 221.4 MB / 229.9 MB, free: 3.246 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.0009074/0.0009074, allocations: 102.9 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09587/0.09681, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.2847, allocations: 50.39 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07965/0.3644, allocations: 76.44 MB / 463.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.3646, allocations: 83.88 kB / 463.5 MB, free: 10.23 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.004677/0.3693, allocations: 1.66 MB / 465.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.3694, allocations: 8 kB / 465.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.3694, allocations: 17 kB / 465.2 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.3696, allocations: 201 kB / 465.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.3697, allocations: 4 kB / 465.4 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.3697, allocations: 5.109 kB / 465.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.062e-05/0.3698, allocations: 16 kB / 465.4 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.37, allocations: 134.6 kB / 465.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.37, allocations: 0 / 465.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.37, allocations: 0 / 465.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.37, allocations: 4 kB / 465.6 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003364/0.3704, allocations: 268 kB / 465.8 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.423e-05/0.3705, allocations: 87.47 kB / 465.9 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.604e-05/0.3705, allocations: 35.5 kB / 465.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.3706, allocations: 11.92 kB / 466 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.3706, allocations: 39.06 kB / 466 MB, free: 7.578 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.3706, allocations: 0 / 466 MB, free: 7.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001823/0.3708, allocations: 69.53 kB / 466.1 MB, free: 7.504 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.3709, allocations: 132.5 kB / 466.2 MB, free: 7.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.371, allocations: 132.9 kB / 466.3 MB, free: 7.203 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.371, allocations: 25.83 kB / 466.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.371, allocations: 88.33 kB / 466.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.3711, allocations: 7.906 kB / 466.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.3711, allocations: 1.594 kB / 466.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.3712, allocations: 318.8 kB / 466.8 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.865e-05/0.3712, allocations: 7.938 kB / 466.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.563e-05/0.3712, allocations: 41.16 kB / 466.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.65e-05/0.3713, allocations: 15.98 kB / 466.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3713, allocations: 0 / 466.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001043/0.3714, allocations: 69.47 kB / 466.9 MB, free: 6.594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.3714, allocations: 4.188 kB / 466.9 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3714, allocations: 8.875 kB / 466.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.958e-06/0.3714, allocations: 0 / 466.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.647e-05/0.3715, allocations: 12 kB / 466.9 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.3715, allocations: 3.984 kB / 466.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.302e-05/0.3716, allocations: 7.906 kB / 466.9 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.3716, allocations: 4 kB / 466.9 MB, free: 6.555 MB / 346.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 (6): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.757e-05/0.3717, allocations: 120 kB / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.878e-05/0.3718, allocations: 57.59 kB / 467.1 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.3718, allocations: 15.66 kB / 467.1 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.3718, allocations: 6.438 kB / 467.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3718, allocations: 0 / 467.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3719, allocations: 0 / 467.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.372, allocations: 158.1 kB / 467.3 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.372, allocations: 0 / 467.3 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.3721, allocations: 17.73 kB / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3721, allocations: 8.094 kB / 467.3 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3721, allocations: 3.906 kB / 467.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3721, allocations: 0 / 467.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3721, allocations: 7.938 kB / 467.3 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001591/0.3723, allocations: 220.2 kB / 467.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002368/0.3726, allocations: 0.5854 MB / 468.1 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.3726, allocations: 89 kB / 468.2 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.3727, allocations: 4.812 kB / 468.2 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.3727, allocations: 3.984 kB / 468.2 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.3728, allocations: 7.906 kB / 468.2 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.3728, allocations: 4 kB / 468.2 MB, free: 5.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.575e-05/0.3729, allocations: 111.3 kB / 468.3 MB, free: 5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007854/0.3737, allocations: 11.94 kB / 468.3 MB, free: 4.988 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.555e-05/0.3738, allocations: 99.19 kB / 468.4 MB, free: 4.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.352e-05/0.3739, allocations: 31.92 kB / 468.5 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.3739, allocations: 4 kB / 468.5 MB, free: 4.844 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.253e-05/0.3739, allocations: 0 / 468.5 MB, free: 4.844 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3742, allocations: 38.81 kB / 468.5 MB, free: 4.809 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002759/0.3744, allocations: 122.2 kB / 468.6 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.3748, allocations: 0.7192 MB / 469.4 MB, free: 3.914 MB / 346.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3748, allocations: 0 / 469.4 MB, free: 3.914 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1)