Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001006/0.001006, allocations: 182.4 kB / 8.137 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.106/1.106, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009311/0.0009311, allocations: 98.52 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09032/0.09128, allocations: 55.82 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.2761, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07834/0.3545, allocations: 80.5 MB / 467.5 MB, free: 6.297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.3548, allocations: 84.89 kB / 467.6 MB, free: 6.215 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.01666/0.3714, allocations: 6.31 MB / 473.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3715, allocations: 11.94 kB / 473.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.38e-05/0.3716, allocations: 23.72 kB / 473.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.372, allocations: 294 kB / 474.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.372, allocations: 0 / 474.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.3721, allocations: 11.91 kB / 474.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001065/0.3722, allocations: 40.48 kB / 474.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.3724, allocations: 163.3 kB / 474.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3725, allocations: 0 / 474.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3725, allocations: 3.938 kB / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3725, allocations: 4 kB / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.373, allocations: 468.3 kB / 474.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.3732, allocations: 134.7 kB / 475 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.83e-05/0.3732, allocations: 55.55 kB / 475.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3733, allocations: 0 / 475.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/0.3734, allocations: 101 kB / 475.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.3734, allocations: 0 / 475.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002372/0.3736, allocations: 117.3 kB / 475.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.3737, allocations: 187.9 kB / 475.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.374, allocations: 285.2 kB / 475.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.374, allocations: 33.69 kB / 475.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.3741, allocations: 104.3 kB / 475.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.3741, allocations: 19.75 kB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.3742, allocations: 0 / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.3743, allocations: 330.8 kB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.473e-05/0.3743, allocations: 20 kB / 476.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.076e-05/0.3744, allocations: 108.2 kB / 476.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.798e-05/0.3745, allocations: 24.92 kB / 476.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3745, allocations: 7.938 kB / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001996/0.3747, allocations: 129.3 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.3747, allocations: 4 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3747, allocations: 0.5625 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3747, allocations: 4 kB / 476.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3749, allocations: 19.98 kB / 476.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.3749, allocations: 4 kB / 476.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.936e-05/0.375, allocations: 16.02 kB / 476.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.375, allocations: 4.156 kB / 476.6 MB, free: 12.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.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.125e-05/0.3751, allocations: 120.4 kB / 476.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.3751, allocations: 69.41 kB / 476.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.3753, allocations: 111.3 kB / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3754, allocations: 0 / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3754, allocations: 4 kB / 476.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3754, allocations: 0 / 476.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.3756, allocations: 234.1 kB / 477.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3756, allocations: 4 kB / 477.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.857e-05/0.3757, allocations: 12.94 kB / 477.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3757, allocations: 0 / 477.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.3757, allocations: 7.984 kB / 477.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3757, allocations: 3.938 kB / 477.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3757, allocations: 4 kB / 477.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002105/0.3759, allocations: 205.7 kB / 477.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003057/0.3762, allocations: 0.5789 MB / 477.9 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.3764, allocations: 128.7 kB / 478 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.3764, allocations: 0 / 478 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.3765, allocations: 4 kB / 478 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.3765, allocations: 23.83 kB / 478.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3766, allocations: 4 kB / 478.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001985/0.3768, allocations: 229.2 kB / 478.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008488/0.3776, allocations: 55.94 kB / 478.3 MB, free: 10.98 MB / 362.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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,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 (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.0006123/0.3782, allocations: 332.8 kB / 478.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.3784, allocations: 91.91 kB / 478.8 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3784, allocations: 0 / 478.8 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.458e-05/0.3785, allocations: 31.98 kB / 478.8 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.3789, allocations: 65.86 kB / 478.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005273/0.3794, allocations: 286.6 kB / 479.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/0.3798, allocations: 0.7784 MB / 479.9 MB, free: 9.438 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.3798, allocations: 0 / 479.9 MB, free: 9.438 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1)