Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.001609/0.001609, allocations: 202.1 kB / 8.543 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008353/0.0008353, allocations: 88.86 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1186/0.1195, allocations: 56.91 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.2297, allocations: 51.47 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2793/0.5091, allocations: 81.48 MB / 476.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.5093, allocations: 79.03 kB / 476.3 MB, free: 10.92 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.017/0.5263, allocations: 6.809 MB / 483.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.5264, allocations: 12 kB / 483.1 MB, free: 5.941 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.5264, allocations: 19.72 kB / 483.1 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.5268, allocations: 280.7 kB / 483.4 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.5268, allocations: 4 kB / 483.4 MB, free: 5.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.5268, allocations: 4 kB / 483.4 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.717e-05/0.5269, allocations: 40.86 kB / 483.4 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.5272, allocations: 138.1 kB / 483.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5272, allocations: 0 / 483.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.5273, allocations: 0 / 483.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.5273, allocations: 0.75 kB / 483.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004591/0.5277, allocations: 348.6 kB / 483.9 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.5279, allocations: 98.91 kB / 484 MB, free: 5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.245e-05/0.528, allocations: 43.45 kB / 484 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.528, allocations: 0 / 484 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/0.5281, allocations: 70.77 kB / 484.1 MB, free: 4.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.5281, allocations: 4 kB / 484.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.000246/0.5284, allocations: 96.47 kB / 484.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.5284, allocations: 143.6 kB / 484.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.5287, allocations: 233.9 kB / 484.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.5287, allocations: 29.7 kB / 484.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.5287, allocations: 95.84 kB / 484.7 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.5288, allocations: 23.42 kB / 484.7 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.5288, allocations: 4.062 kB / 484.7 MB, free: 4.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.871e-05/0.5289, allocations: 326.7 kB / 485 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.69e-05/0.5289, allocations: 19.56 kB / 485.1 MB, free: 3.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.462e-05/0.529, allocations: 65.5 kB / 485.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.72e-05/0.529, allocations: 27.89 kB / 485.2 MB, free: 3.859 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.529, allocations: 3.938 kB / 485.2 MB, free: 3.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000138/0.5292, allocations: 96.75 kB / 485.3 MB, free: 3.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5292, allocations: 8 kB / 485.3 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.5292, allocations: 0 / 485.3 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.5292, allocations: 3.906 kB / 485.3 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.364e-05/0.5293, allocations: 19.92 kB / 485.3 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.5293, allocations: 5.438 kB / 485.3 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.244e-05/0.5294, allocations: 8 kB / 485.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.5294, allocations: 4 kB / 485.3 MB, free: 3.723 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,shiftSample1.y,shiftSample1.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 6.497e-05/0.5295, allocations: 112.9 kB / 485.4 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.5295, allocations: 61.34 kB / 485.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000186/0.5297, allocations: 108 kB / 485.6 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5298, allocations: 64 / 485.6 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.5298, allocations: 4 kB / 485.6 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5298, allocations: 4 kB / 485.6 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.5299, allocations: 206.8 kB / 485.8 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.5299, allocations: 0 / 485.8 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.53, allocations: 4 kB / 485.8 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.53, allocations: 4 kB / 485.8 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.53, allocations: 7.859 kB / 485.8 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.53, allocations: 4 kB / 485.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.53, allocations: 0 / 485.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001589/0.5302, allocations: 170.2 kB / 486 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002331/0.5304, allocations: 0.5402 MB / 486.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.042e-05/0.5305, allocations: 112.8 kB / 486.6 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.5305, allocations: 9.969 kB / 486.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.063e-05/0.5306, allocations: 7.984 kB / 486.6 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.5307, allocations: 1.5 kB / 486.6 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.5307, allocations: 4 kB / 486.6 MB, free: 2.336 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001344/0.5308, allocations: 194.8 kB / 486.8 MB, free: 2.188 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008145/0.5316, allocations: 43.8 kB / 486.9 MB, free: 2.148 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,shiftSample1.y,sample1.y,shiftSample1.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.0006283/0.5323, allocations: 321.1 kB / 487.2 MB, free: 1.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.5324, allocations: 59.42 kB / 487.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.5325, allocations: 256 / 487.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.841e-05/0.5325, allocations: 35.84 kB / 487.3 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.5329, allocations: 53.05 kB / 487.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/0.5333, allocations: 230.5 kB / 487.6 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.5335, allocations: 0.7587 MB / 488.3 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5335, allocations: 0 / 488.3 MB, free: 0.8398 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat