Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009862/0.0009859, allocations: 188.3 kB / 8.141 MB, free: 2.188 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.000858/0.000858, allocations: 104.3 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09231/0.0932, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.2731, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07863/0.3517, allocations: 80.27 MB / 467.3 MB, free: 6.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.352, allocations: 79.95 kB / 467.4 MB, free: 6.438 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.01558/0.3676, allocations: 6.186 MB / 473.5 MB, free: 248 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3676, allocations: 8 kB / 473.6 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.3677, allocations: 27.7 kB / 473.6 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.3681, allocations: 293.9 kB / 473.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.3682, allocations: 4 kB / 473.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.3682, allocations: 4 kB / 473.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001077/0.3683, allocations: 36.73 kB / 473.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.3686, allocations: 152.9 kB / 474.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3686, allocations: 3.938 kB / 474.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.3686, allocations: 1 kB / 474.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.3686, allocations: 4 kB / 474.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.3691, allocations: 371 kB / 474.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.3693, allocations: 109.6 kB / 474.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.932e-05/0.3694, allocations: 42.69 kB / 474.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.3694, allocations: 0 / 474.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.403e-05/0.3695, allocations: 79.31 kB / 474.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.412e-06/0.3695, allocations: 0 / 474.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002488/0.3697, allocations: 110.3 kB / 474.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.3698, allocations: 162.2 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.3701, allocations: 289 kB / 475.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3701, allocations: 25.7 kB / 475.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.3702, allocations: 100.1 kB / 475.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.3702, allocations: 19.73 kB / 475.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.3702, allocations: 0 / 475.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.39e-05/0.3703, allocations: 338.9 kB / 475.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-05/0.3704, allocations: 23.98 kB / 475.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.372e-05/0.3705, allocations: 82.86 kB / 475.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.598e-05/0.3705, allocations: 35.92 kB / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3705, allocations: 0 / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001741/0.3707, allocations: 110.3 kB / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.3707, allocations: 9.312 kB / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3707, allocations: 0 / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.3708, allocations: 4 kB / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3709, allocations: 15.98 kB / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.3709, allocations: 8.062 kB / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.495e-05/0.371, allocations: 11.91 kB / 476 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.371, allocations: 4.125 kB / 476 MB, free: 13.55 MB / 362.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 8.845e-05/0.3711, allocations: 123.7 kB / 476.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-05/0.3712, allocations: 65.36 kB / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.3714, allocations: 107.4 kB / 476.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3714, allocations: 3.984 kB / 476.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3714, allocations: 4.062 kB / 476.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3714, allocations: 0 / 476.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.3716, allocations: 226 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3716, allocations: 5.219 kB / 476.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/0.3717, allocations: 8 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3717, allocations: 4 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.3717, allocations: 3.984 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3717, allocations: 3.938 kB / 476.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.3718, allocations: 4 kB / 476.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001936/0.3719, allocations: 177.8 kB / 476.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002753/0.3722, allocations: 0.5436 MB / 477.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3724, allocations: 124.8 kB / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.3724, allocations: 4 kB / 477.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-05/0.3725, allocations: 7.891 kB / 477.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.204e-05/0.3725, allocations: 7.938 kB / 477.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3726, allocations: 11.98 kB / 477.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002119/0.3728, allocations: 229.2 kB / 477.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008634/0.3736, allocations: 47.94 kB / 477.7 MB, free: 11.71 MB / 362.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.0006739/0.3743, allocations: 323 kB / 478 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.3745, allocations: 79.91 kB / 478.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3745, allocations: 3.938 kB / 478.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.014e-05/0.3746, allocations: 40.17 kB / 478.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.3749, allocations: 53.98 kB / 478.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005177/0.3755, allocations: 285.6 kB / 478.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003601/0.3758, allocations: 0.7824 MB / 479.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3758, allocations: 0 / 479.2 MB, free: 10.18 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1)