Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",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.001033/0.001033, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.115/1.115, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008874/0.0008875, allocations: 100.6 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09183/0.09275, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.2783, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07935/0.3576, allocations: 80.28 MB / 467.3 MB, free: 6.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.3579, allocations: 87.89 kB / 467.4 MB, free: 6.414 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.01704/0.3749, allocations: 6.767 MB / 474.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.375, allocations: 8 kB / 474.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.445e-05/0.375, allocations: 23.72 kB / 474.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.3755, allocations: 286.1 kB / 474.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.3755, allocations: 6.531 kB / 474.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.3755, allocations: 11.92 kB / 474.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001034/0.3756, allocations: 39.98 kB / 474.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.3759, allocations: 143.5 kB / 474.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3759, allocations: 0 / 474.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3759, allocations: 3.984 kB / 474.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3759, allocations: 4 kB / 474.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.3764, allocations: 374.9 kB / 475 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.3766, allocations: 108 kB / 475.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.954e-05/0.3766, allocations: 46.64 kB / 475.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.3767, allocations: 7.984 kB / 475.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.504e-05/0.3768, allocations: 67.41 kB / 475.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.3768, allocations: 4 kB / 475.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002239/0.377, allocations: 109.3 kB / 475.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.3771, allocations: 158.2 kB / 475.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.3774, allocations: 288.9 kB / 475.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3774, allocations: 37.77 kB / 475.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.041e-05/0.3774, allocations: 92.12 kB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.3775, allocations: 19.75 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.3775, allocations: 0 / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.797e-05/0.3776, allocations: 334.8 kB / 476.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.933e-05/0.3776, allocations: 20 kB / 476.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.209e-05/0.3777, allocations: 94.78 kB / 476.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.332e-05/0.3778, allocations: 27.98 kB / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3778, allocations: 0 / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001735/0.378, allocations: 113.3 kB / 476.5 MB, free: 13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.986e-06/0.378, allocations: 12.06 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.378, allocations: 1.031 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.378, allocations: 4 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.3781, allocations: 15.98 kB / 476.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3781, allocations: 6.734 kB / 476.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.956e-05/0.3782, allocations: 7.906 kB / 476.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.3782, allocations: 4 kB / 476.6 MB, free: 12.95 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,superSample1.y,superSample1.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.854e-05/0.3783, allocations: 113 kB / 476.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.3784, allocations: 69.41 kB / 476.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.3786, allocations: 107.4 kB / 476.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3786, allocations: 0 / 476.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3786, allocations: 0 / 476.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3786, allocations: 6.25 kB / 476.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.3788, allocations: 230 kB / 477.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3788, allocations: 4 kB / 477.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.009e-05/0.3789, allocations: 15.92 kB / 477.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3789, allocations: 4 kB / 477.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3789, allocations: 4.062 kB / 477.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3789, allocations: 0 / 477.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.379, allocations: 4 kB / 477.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001943/0.3791, allocations: 173.8 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002785/0.3794, allocations: 0.5491 MB / 477.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.3796, allocations: 124.8 kB / 478 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.3796, allocations: 8 kB / 478 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.83e-05/0.3797, allocations: 9.219 kB / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.3797, allocations: 7.984 kB / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.3798, allocations: 0 / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002036/0.38, allocations: 233.2 kB / 478.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008216/0.3808, allocations: 52 kB / 478.3 MB, free: 11.11 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,superSample1.y,sample1.y,superSample1.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.0006294/0.3814, allocations: 346.3 kB / 478.6 MB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.3816, allocations: 75.91 kB / 478.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3816, allocations: 0 / 478.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/0.3817, allocations: 28 kB / 478.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.382, allocations: 61.53 kB / 478.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004639/0.3825, allocations: 274.2 kB / 479 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/0.3828, allocations: 0.7744 MB / 479.8 MB, free: 9.594 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3828, allocations: 0 / 479.8 MB, free: 9.594 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1)