Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") [: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 3.2.1+maint.om/package.mo): time 0.003505/0.003505, allocations: 174.3 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.356/1.356, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002254/0.002254, allocations: 99.94 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1777/0.1777, allocations: 37.97 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.564e-06/7.584e-06, allocations: 0 / 349.5 MB, free: 37.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.0985, allocations: 48.71 MB / 398.2 MB, free: 5.676 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/0.4375, allocations: 73.6 MB / 471.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.4378, allocations: 63.31 kB / 471.9 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004051/0.4419, allocations: 1.12 MB / 473 MB, free: 13.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.4419, allocations: 3.75 kB / 473 MB, free: 13.48 MB / 330.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.0004439/0.4423, allocations: 388.7 kB / 473.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4424, allocations: 10.31 kB / 473.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.4425, allocations: 11.61 kB / 473.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.4426, allocations: 171.1 kB / 473.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.4426, allocations: 3.875 kB / 473.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.4426, allocations: 3.281 kB / 473.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/0.4428, allocations: 30.62 kB / 473.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.4429, allocations: 83.08 kB / 473.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4429, allocations: 0 / 473.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.4429, allocations: 0 / 473.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.4429, allocations: 5.156 kB / 473.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004442/0.4434, allocations: 292.8 kB / 474 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.4435, allocations: 81.31 kB / 474 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.84e-05/0.4436, allocations: 34.95 kB / 474.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.4436, allocations: 3.812 kB / 474.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.4438, allocations: 95.14 kB / 474.2 MB, free: 12.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.4438, allocations: 0 / 474.2 MB, free: 12.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002556/0.444, allocations: 106.7 kB / 474.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.4441, allocations: 58.97 kB / 474.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.27e-05/0.4441, allocations: 111.6 kB / 474.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.4442, allocations: 29.58 kB / 474.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/0.4442, allocations: 90.95 kB / 474.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.102e-05/0.4442, allocations: 34.14 kB / 474.6 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.4443, allocations: 0 / 474.6 MB, free: 12.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.967e-05/0.4443, allocations: 321.7 kB / 474.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.724e-05/0.4444, allocations: 26.94 kB / 474.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-05/0.4445, allocations: 63.03 kB / 475 MB, free: 11.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.098e-05/0.4445, allocations: 38.02 kB / 475 MB, free: 11.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4445, allocations: 0 / 475 MB, free: 11.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001734/0.4447, allocations: 133.3 kB / 475.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.4447, allocations: 7.688 kB / 475.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4448, allocations: 0 / 475.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.4448, allocations: 7.781 kB / 475.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.4449, allocations: 22.72 kB / 475.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.4449, allocations: 7.891 kB / 475.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.32e-05/0.445, allocations: 3.844 kB / 475.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.445, allocations: 7.844 kB / 475.2 MB, free: 11.77 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001414/0.4452, allocations: 127.4 kB / 475.3 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.4452, allocations: 7.719 kB / 475.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.565e-05/0.4452, allocations: 15.11 kB / 475.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4453, allocations: 0 / 475.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4453, allocations: 0.75 kB / 475.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.4453, allocations: 0 / 475.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/0.4456, allocations: 380.2 kB / 475.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4456, allocations: 0 / 475.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.4457, allocations: 19.53 kB / 475.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.4457, allocations: 0 / 475.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.4457, allocations: 4.844 kB / 475.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4457, allocations: 0 / 475.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.4457, allocations: 3.875 kB / 475.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001726/0.4459, allocations: 206.8 kB / 476 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.446, allocations: 88.77 kB / 476.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/0.446, allocations: 10.81 kB / 476.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.4462, allocations: 12.08 kB / 476.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.4462, allocations: 11.66 kB / 476.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4462, allocations: 6.906 kB / 476.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.082e-05/0.4463, allocations: 94.19 kB / 476.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002416/0.4465, allocations: 19.5 kB / 476.2 MB, free: 11.03 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 9.44e-05/0.4466, allocations: 106 kB / 476.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.4468, allocations: 88.97 kB / 476.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.4468, allocations: 0 / 476.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.409e-05/0.4469, allocations: 42 kB / 476.4 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.4471, allocations: 11.41 kB / 476.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000348/0.4474, allocations: 129.5 kB / 476.6 MB, free: 10.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002517/0.4477, allocations: 0.7143 MB / 477.3 MB, free: 26.14 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4477, allocations: 0 / 477.3 MB, free: 26.14 MB / 346.7 MB Notification: Performance of Templates: time 0.003032/0.4507, allocations: 0.9985 MB / 478.3 MB, free: 26.04 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)