Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",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 trunk/package.mo): time 0.001127/0.001127, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000949/0.000949, allocations: 98.84 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09765/0.09863, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.1832, allocations: 51.47 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2333/0.4166, allocations: 81.51 MB / 476.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.4168, allocations: 88.09 kB / 476.3 MB, free: 10.93 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.01981/0.4367, allocations: 7.569 MB / 483.9 MB, free: 5.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.4367, allocations: 8 kB / 483.9 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.4368, allocations: 23.72 kB / 483.9 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.4372, allocations: 301.1 kB / 484.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.4372, allocations: 0 / 484.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.4373, allocations: 4 kB / 484.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001017/0.4374, allocations: 42.92 kB / 484.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.4376, allocations: 141.8 kB / 484.4 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.4376, allocations: 0 / 484.4 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.4376, allocations: 5.875 kB / 484.4 MB, free: 4.844 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.4376, allocations: 7.922 kB / 484.4 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/0.4381, allocations: 376 kB / 484.8 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.4382, allocations: 110.9 kB / 484.9 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.421e-05/0.4383, allocations: 46.02 kB / 484.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.4383, allocations: 0 / 484.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.464e-05/0.4384, allocations: 74.83 kB / 485 MB, free: 4.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.4384, allocations: 0 / 485 MB, free: 4.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.000229/0.4387, allocations: 109.5 kB / 485.1 MB, free: 4.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.4387, allocations: 166.2 kB / 485.3 MB, free: 3.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.439, allocations: 290.1 kB / 485.5 MB, free: 3.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.439, allocations: 33.64 kB / 485.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.4391, allocations: 99.89 kB / 485.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.4391, allocations: 11.72 kB / 485.7 MB, free: 3.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-06/0.4391, allocations: 0 / 485.7 MB, free: 3.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.254e-05/0.4392, allocations: 342.2 kB / 486 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.046e-05/0.4392, allocations: 19.81 kB / 486 MB, free: 3.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-05/0.4393, allocations: 86.41 kB / 486.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.102e-05/0.4393, allocations: 31.36 kB / 486.2 MB, free: 3.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4393, allocations: 0 / 486.2 MB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001622/0.4395, allocations: 120.8 kB / 486.3 MB, free: 3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.4395, allocations: 7.906 kB / 486.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.4395, allocations: 0 / 486.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.4396, allocations: 4 kB / 486.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.4397, allocations: 19.98 kB / 486.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.4397, allocations: 3.938 kB / 486.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.477e-05/0.4398, allocations: 7.938 kB / 486.3 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.4398, allocations: 6.875 kB / 486.3 MB, free: 2.953 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: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample1.y,superSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 5.594e-05/0.4399, allocations: 112.9 kB / 486.4 MB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.4399, allocations: 69.22 kB / 486.5 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.4401, allocations: 114.5 kB / 486.6 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.4401, allocations: 0 / 486.6 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4402, allocations: 4 kB / 486.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4402, allocations: 0 / 486.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.4403, allocations: 224.9 kB / 486.8 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4403, allocations: 4 kB / 486.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.269e-05/0.4404, allocations: 12 kB / 486.8 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4404, allocations: 0 / 486.8 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.4404, allocations: 7.984 kB / 486.9 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.4404, allocations: 3.938 kB / 486.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4404, allocations: 0 / 486.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001654/0.4406, allocations: 177.9 kB / 487 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001976/0.4408, allocations: 0.5569 MB / 487.6 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.96e-05/0.4409, allocations: 120.5 kB / 487.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.441, allocations: 11.69 kB / 487.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.441, allocations: 5.797 kB / 487.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.4411, allocations: 4 kB / 487.7 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4411, allocations: 11.92 kB / 487.7 MB, free: 1.504 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000179/0.4413, allocations: 235.2 kB / 488 MB, free: 1.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008716/0.4422, allocations: 55.61 kB / 488 MB, free: 1.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample1.y,sample1.y,superSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006112/0.4428, allocations: 319.6 kB / 488.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.443, allocations: 79.22 kB / 488.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.443, allocations: 0 / 488.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.008e-05/0.4431, allocations: 39.47 kB / 488.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.4434, allocations: 60.03 kB / 488.5 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004869/0.4439, allocations: 279.1 kB / 488.8 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.4442, allocations: 0.7704 MB / 489.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4442, allocations: 4 kB / 489.6 MB, free: 15.88 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat