Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.00393/0.003931, allocations: 186.5 kB / 7.459 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.32/1.32, allocations: 194.2 MB / 202.1 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00182/0.00182, allocations: 116 kB / 247.1 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.178/0.178, allocations: 39.93 MB / 331.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.181e-06/6.201e-06, allocations: 0 / 392.8 MB, free: 75.92 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 54.87 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3275/0.4282, allocations: 79.96 MB / 0.5152 GB, free: 9.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4285, allocations: 65.8 kB / 0.5153 GB, free: 9.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004403/0.433, allocations: 1.125 MB / 0.5164 GB, free: 9.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.433, allocations: 1.375 kB / 0.5164 GB, free: 9.906 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.0004611/0.4335, allocations: 389.6 kB / 0.5168 GB, free: 9.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4335, allocations: 9.625 kB / 0.5168 GB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.4336, allocations: 8.031 kB / 0.5168 GB, free: 9.535 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.4337, allocations: 165 kB / 0.5169 GB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.4337, allocations: 11.38 kB / 0.517 GB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.4337, allocations: 6.859 kB / 0.517 GB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001106/0.4339, allocations: 33.31 kB / 0.517 GB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.434, allocations: 72.66 kB / 0.5171 GB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.434, allocations: 0 / 0.5171 GB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.434, allocations: 0 / 0.5171 GB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.434, allocations: 3.578 kB / 0.5171 GB, free: 9.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004912/0.4345, allocations: 295.6 kB / 0.5174 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.4347, allocations: 72.19 kB / 0.5174 GB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.951e-05/0.4348, allocations: 41.61 kB / 0.5175 GB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.4348, allocations: 2.969 kB / 0.5175 GB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.435, allocations: 97.19 kB / 0.5176 GB, free: 8.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.304e-06/0.435, allocations: 0 / 0.5176 GB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002766/0.4353, allocations: 104.5 kB / 0.5177 GB, free: 8.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.4353, allocations: 58.47 kB / 0.5177 GB, free: 8.859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.557e-05/0.4354, allocations: 104.8 kB / 0.5178 GB, free: 8.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.4354, allocations: 30.56 kB / 0.5178 GB, free: 8.734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.4355, allocations: 87.7 kB / 0.5179 GB, free: 8.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.4355, allocations: 35.83 kB / 0.518 GB, free: 8.629 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.4355, allocations: 0 / 0.518 GB, free: 8.629 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.4356, allocations: 323.6 kB / 0.5183 GB, free: 8.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.4357, allocations: 28.25 kB / 0.5183 GB, free: 8.312 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.182e-05/0.4358, allocations: 70.78 kB / 0.5184 GB, free: 8.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.54e-05/0.4359, allocations: 33.94 kB / 0.5184 GB, free: 8.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4359, allocations: 5.219 kB / 0.5184 GB, free: 8.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002295/0.4362, allocations: 127.2 kB / 0.5185 GB, free: 8.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.4362, allocations: 8.062 kB / 0.5185 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4362, allocations: 3.344 kB / 0.5185 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.4362, allocations: 2.188 kB / 0.5185 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.4364, allocations: 26.56 kB / 0.5186 GB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.4364, allocations: 7.5 kB / 0.5186 GB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.677e-05/0.4365, allocations: 16.33 kB / 0.5186 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.4365, allocations: 6.422 kB / 0.5186 GB, free: 8.191 MB / 346.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: 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 8.185e-05/0.4366, allocations: 112.5 kB / 0.5187 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.056e-05/0.4366, allocations: 9.266 kB / 0.5187 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.4367, allocations: 10.08 kB / 0.5187 GB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.4367, allocations: 6.75 kB / 0.5187 GB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4367, allocations: 3.906 kB / 0.5187 GB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.4367, allocations: 1.172 kB / 0.5187 GB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000391/0.4371, allocations: 366.3 kB / 0.5191 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4371, allocations: 1.125 kB / 0.5191 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.4e-05/0.4372, allocations: 9.875 kB / 0.5191 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4372, allocations: 1.344 kB / 0.5191 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.4372, allocations: 3.359 kB / 0.5191 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.4372, allocations: 4 kB / 0.5191 GB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4372, allocations: 9.219 kB / 0.5191 GB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000208/0.4374, allocations: 208.5 kB / 0.5193 GB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.4375, allocations: 88.69 kB / 0.5194 GB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.4375, allocations: 6.453 kB / 0.5194 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4376, allocations: 17.88 kB / 0.5194 GB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.4377, allocations: 6.5 kB / 0.5194 GB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.4377, allocations: 4.125 kB / 0.5194 GB, free: 7.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.223e-05/0.4378, allocations: 93.09 kB / 0.5195 GB, free: 7.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002446/0.438, allocations: 16.5 kB / 0.5195 GB, free: 7.461 MB / 346.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 0.0001115/0.4381, allocations: 102.3 kB / 0.5196 GB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002036/0.4383, allocations: 88.45 kB / 0.5197 GB, free: 7.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4383, allocations: 4.312 kB / 0.5197 GB, free: 7.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.4385, allocations: 43.25 kB / 0.5198 GB, free: 7.352 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.4387, allocations: 16.17 kB / 0.5198 GB, free: 7.344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/0.4391, allocations: 125 kB / 0.5199 GB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.4393, allocations: 0.711 MB / 0.5206 GB, free: 6.562 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4393, allocations: 0 / 0.5206 GB, free: 6.562 MB / 346.7 MB Notification: Performance of Templates: time 0.003624/0.4429, allocations: 0.9835 MB / 0.5215 GB, free: 6.477 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)