Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001134/0.001134, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008623/0.0008624, allocations: 92.28 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.12/0.1209, allocations: 56.9 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.2194, allocations: 51.48 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/0.4825, allocations: 81.5 MB / 476.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.4827, allocations: 79.45 kB / 476.3 MB, free: 10.9 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.01828/0.501, allocations: 6.985 MB / 483.3 MB, free: 5.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5011, allocations: 12 kB / 483.3 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.5012, allocations: 23.28 kB / 483.3 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.5018, allocations: 301 kB / 483.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.5018, allocations: 0 / 483.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.5018, allocations: 4 kB / 483.6 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001235/0.502, allocations: 47.3 kB / 483.6 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.5022, allocations: 151.9 kB / 483.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.5022, allocations: 0 / 483.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.5023, allocations: 0 / 483.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5023, allocations: 0 / 483.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004827/0.5028, allocations: 380.9 kB / 484.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.5029, allocations: 110.8 kB / 484.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.875e-05/0.503, allocations: 42.25 kB / 484.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.503, allocations: 3.75 kB / 484.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.852e-05/0.5031, allocations: 70.95 kB / 484.4 MB, free: 4.707 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.964e-06/0.5031, allocations: 4 kB / 484.4 MB, free: 4.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002628/0.5034, allocations: 109.6 kB / 484.5 MB, free: 4.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.5035, allocations: 162.2 kB / 484.7 MB, free: 4.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.5038, allocations: 290.5 kB / 484.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.5038, allocations: 25.7 kB / 485 MB, free: 4.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.5038, allocations: 103.8 kB / 485.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.5039, allocations: 19.77 kB / 485.1 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/0.5039, allocations: 4.062 kB / 485.1 MB, free: 4.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.504, allocations: 338.3 kB / 485.4 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.04e-05/0.504, allocations: 19.88 kB / 485.4 MB, free: 3.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-05/0.5041, allocations: 85.86 kB / 485.5 MB, free: 3.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.72e-05/0.5042, allocations: 35.61 kB / 485.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5042, allocations: 0 / 485.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001746/0.5044, allocations: 109.7 kB / 485.7 MB, free: 3.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.5044, allocations: 7.906 kB / 485.7 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5044, allocations: 0 / 485.7 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.5044, allocations: 4 kB / 485.7 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.5045, allocations: 16.98 kB / 485.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.5045, allocations: 11.94 kB / 485.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.859e-05/0.5046, allocations: 7.984 kB / 485.7 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.5047, allocations: 7.688 kB / 485.7 MB, free: 3.418 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 7.745e-05/0.5047, allocations: 110.6 kB / 485.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.5048, allocations: 65.17 kB / 485.9 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002065/0.505, allocations: 110.5 kB / 486 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5051, allocations: 5.469 kB / 486 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.5051, allocations: 4 kB / 486 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5051, allocations: 0 / 486 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.5053, allocations: 224.6 kB / 486.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.5053, allocations: 0 / 486.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.585e-05/0.5053, allocations: 15.98 kB / 486.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5054, allocations: 0 / 486.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.5054, allocations: 4 kB / 486.3 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.5054, allocations: 0 / 486.3 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5054, allocations: 3.938 kB / 486.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002003/0.5056, allocations: 180.9 kB / 486.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002475/0.5059, allocations: 0.5559 MB / 487 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.506, allocations: 127.5 kB / 487.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.506, allocations: 4 kB / 487.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.728e-05/0.5061, allocations: 0 / 487.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/0.5062, allocations: 15.39 kB / 487.1 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.5062, allocations: 8 kB / 487.1 MB, free: 1.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002014/0.5064, allocations: 239.5 kB / 487.4 MB, free: 1.781 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008765/0.5073, allocations: 49.25 kB / 487.4 MB, free: 1.742 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.0007182/0.508, allocations: 321.3 kB / 487.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002078/0.5082, allocations: 79.72 kB / 487.8 MB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5082, allocations: 256 / 487.8 MB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.183e-05/0.5083, allocations: 40.44 kB / 487.9 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.5087, allocations: 57.55 kB / 487.9 MB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006265/0.5093, allocations: 285 kB / 488.2 MB, free: 1.137 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.5096, allocations: 0.7741 MB / 489 MB, free: 352 kB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5096, allocations: 0 / 489 MB, free: 352 kB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat