Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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 trunk/package.mo): time 0.001111/0.001111, allocations: 198.2 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001106/0.001106, allocations: 91.67 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1429/0.144, allocations: 56.91 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.282, allocations: 51.46 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3319/0.614, allocations: 81.67 MB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.6143, allocations: 81.03 kB / 476.5 MB, free: 10.95 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01838/0.6327, allocations: 7.114 MB / 483.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.6328, allocations: 8 kB / 483.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.6329, allocations: 28.5 kB / 483.6 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005368/0.6334, allocations: 311.5 kB / 483.9 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.6335, allocations: 0 / 483.9 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.6335, allocations: 4 kB / 483.9 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001293/0.6336, allocations: 42.05 kB / 483.9 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003168/0.6339, allocations: 177.2 kB / 484.1 MB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.634, allocations: 6.094 kB / 484.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.634, allocations: 0 / 484.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.634, allocations: 0 / 484.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.6347, allocations: 386.1 kB / 484.5 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.6349, allocations: 130.5 kB / 484.6 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.138e-05/0.635, allocations: 54.25 kB / 484.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.635, allocations: 11.92 kB / 484.7 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/0.6351, allocations: 71.06 kB / 484.8 MB, free: 4.477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.244e-06/0.6351, allocations: 0 / 484.8 MB, free: 4.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002963/0.6354, allocations: 123.1 kB / 484.9 MB, free: 4.367 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.6355, allocations: 191.4 kB / 485.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.6358, allocations: 300.3 kB / 485.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.6358, allocations: 29.7 kB / 485.4 MB, free: 3.863 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.6359, allocations: 111.4 kB / 485.5 MB, free: 3.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.6359, allocations: 3.906 kB / 485.5 MB, free: 3.754 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-06/0.6359, allocations: 4 kB / 485.5 MB, free: 3.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.898e-05/0.636, allocations: 341.6 kB / 485.8 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.319e-05/0.6361, allocations: 18.69 kB / 485.9 MB, free: 3.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.611e-05/0.6362, allocations: 102.8 kB / 486 MB, free: 3.293 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.661e-05/0.6362, allocations: 35.3 kB / 486 MB, free: 3.266 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.6362, allocations: 0 / 486 MB, free: 3.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000196/0.6364, allocations: 128.1 kB / 486.1 MB, free: 3.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.6365, allocations: 6.812 kB / 486.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.6365, allocations: 4.188 kB / 486.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.6365, allocations: 4 kB / 486.1 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.6366, allocations: 27.92 kB / 486.2 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.6366, allocations: 3.938 kB / 486.2 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.6367, allocations: 12.95 kB / 486.2 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.6368, allocations: 4 kB / 486.2 MB, free: 3.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.228e-05/0.6368, allocations: 112.9 kB / 486.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.302e-05/0.6369, allocations: 76.66 kB / 486.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.6372, allocations: 111.4 kB / 486.5 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.6372, allocations: 4 kB / 486.5 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6372, allocations: 1.562 kB / 486.5 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.6372, allocations: 3.906 kB / 486.5 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.6374, allocations: 233.5 kB / 486.7 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.6374, allocations: 0 / 486.7 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-05/0.6375, allocations: 23.92 kB / 486.7 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.6375, allocations: 0 / 486.7 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.6375, allocations: 11.34 kB / 486.8 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.6375, allocations: 3.906 kB / 486.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.6375, allocations: 0 / 486.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002059/0.6377, allocations: 204.3 kB / 487 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002455/0.638, allocations: 0.5804 MB / 487.5 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.6381, allocations: 128.7 kB / 487.7 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.6381, allocations: 7.969 kB / 487.7 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.281e-05/0.6382, allocations: 7.938 kB / 487.7 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.6383, allocations: 11.61 kB / 487.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.6383, allocations: 4 kB / 487.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002082/0.6385, allocations: 235 kB / 487.9 MB, free: 1.367 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008998/0.6394, allocations: 58.39 kB / 488 MB, free: 1.316 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: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0007322/0.6402, allocations: 334.2 kB / 488.3 MB, free: 1.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002066/0.6404, allocations: 89.58 kB / 488.4 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6404, allocations: 0 / 488.4 MB, free: 1.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.145e-05/0.6405, allocations: 29.5 kB / 488.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.6409, allocations: 73.27 kB / 488.5 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.6415, allocations: 291.8 kB / 488.8 MB, free: 0.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003432/0.6419, allocations: 0.7801 MB / 489.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6419, allocations: 4 kB / 489.6 MB, free: 15.86 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat