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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001609/0.001609, allocations: 187.3 kB / 7.654 MB, free: 1.402 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.369/1.369, allocations: 194.3 MB / 202.4 MB, free: 8.535 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.001643/0.001643, allocations: 118 kB / 247.4 MB, free: 6.219 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.2478/0.2478, allocations: 39.94 MB / 332.2 MB, free: 4.777 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.253e-05/1.257e-05, allocations: 4.547 kB / 393.3 MB, free: 75.53 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 54.87 MB / 448.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3691/0.4732, allocations: 80.04 MB / 0.5158 GB, free: 10.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4734, allocations: 62.16 kB / 0.5159 GB, free: 10.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00369/0.4771, allocations: 1.433 MB / 0.5173 GB, free: 9.961 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4771, allocations: 0 / 0.5173 GB, free: 9.961 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.4771, allocations: 3.844 kB / 0.5173 GB, free: 9.961 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.0004042/0.4775, allocations: 378.8 kB / 0.5177 GB, free: 9.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.4776, allocations: 7.688 kB / 0.5177 GB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.4776, allocations: 15.55 kB / 0.5177 GB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.4777, allocations: 174.7 kB / 0.5179 GB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.4778, allocations: 5.703 kB / 0.5179 GB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.4778, allocations: 7.688 kB / 0.5179 GB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.96e-05/0.4779, allocations: 29.59 kB / 0.5179 GB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.478, allocations: 69.3 kB / 0.518 GB, free: 9.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.478, allocations: 4 kB / 0.518 GB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.478, allocations: 6.297 kB / 0.518 GB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.478, allocations: 4.859 kB / 0.518 GB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004458/0.4785, allocations: 301.5 kB / 0.5183 GB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.4786, allocations: 73.28 kB / 0.5183 GB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.4787, allocations: 38.55 kB / 0.5184 GB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.4787, allocations: 5.719 kB / 0.5184 GB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.4788, allocations: 87.89 kB / 0.5185 GB, free: 9.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.4789, allocations: 0 / 0.5185 GB, free: 9.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002176/0.4791, allocations: 138.3 kB / 0.5186 GB, free: 8.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.4791, allocations: 60.83 kB / 0.5187 GB, free: 8.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.786e-05/0.4792, allocations: 106.5 kB / 0.5188 GB, free: 8.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.4792, allocations: 29.61 kB / 0.5188 GB, free: 8.789 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.4792, allocations: 89.89 kB / 0.5189 GB, free: 8.703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.4793, allocations: 33.88 kB / 0.5189 GB, free: 8.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.4793, allocations: 0 / 0.5189 GB, free: 8.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.586e-05/0.4793, allocations: 320.4 kB / 0.5192 GB, free: 8.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.08e-05/0.4794, allocations: 25.94 kB / 0.5192 GB, free: 8.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.689e-05/0.4794, allocations: 70 kB / 0.5193 GB, free: 8.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.577e-05/0.4795, allocations: 40.83 kB / 0.5193 GB, free: 8.316 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4795, allocations: 0 / 0.5193 GB, free: 8.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001522/0.4797, allocations: 126.6 kB / 0.5195 GB, free: 8.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.4797, allocations: 8.062 kB / 0.5195 GB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4797, allocations: 3.781 kB / 0.5195 GB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.4797, allocations: 0 / 0.5195 GB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.4798, allocations: 32.56 kB / 0.5195 GB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.4798, allocations: 6.938 kB / 0.5195 GB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.585e-05/0.4799, allocations: 11.72 kB / 0.5195 GB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.4799, allocations: 7.781 kB / 0.5195 GB, free: 8.25 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 6.55e-05/0.48, allocations: 114.3 kB / 0.5196 GB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.48, allocations: 14.8 kB / 0.5196 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.4801, allocations: 12.22 kB / 0.5197 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4801, allocations: 0 / 0.5197 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4801, allocations: 7.891 kB / 0.5197 GB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.4801, allocations: 0 / 0.5197 GB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003129/0.4804, allocations: 406.7 kB / 0.5201 GB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4804, allocations: 0 / 0.5201 GB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.305e-05/0.4805, allocations: 7.188 kB / 0.5201 GB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4805, allocations: 7.75 kB / 0.5201 GB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.4805, allocations: 7.188 kB / 0.5201 GB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4805, allocations: 3.953 kB / 0.5201 GB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4805, allocations: 0 / 0.5201 GB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.4807, allocations: 233.7 kB / 0.5203 GB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.2e-05/0.4807, allocations: 88.64 kB / 0.5204 GB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.4807, allocations: 0 / 0.5204 GB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.4809, allocations: 14.55 kB / 0.5204 GB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.4809, allocations: 18.02 kB / 0.5204 GB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.4809, allocations: 6.359 kB / 0.5204 GB, free: 7.582 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.932e-05/0.481, allocations: 89.59 kB / 0.5205 GB, free: 7.508 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.481, allocations: 0 / 0.5205 GB, free: 7.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002266/0.4812, allocations: 18.88 kB / 0.5205 GB, free: 7.508 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 8.391e-05/0.4813, allocations: 93.84 kB / 0.5206 GB, free: 7.418 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001458/0.4814, allocations: 82.5 kB / 0.5207 GB, free: 7.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.4815, allocations: 4.312 kB / 0.5207 GB, free: 7.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.143e-05/0.4815, allocations: 41.94 kB / 0.5207 GB, free: 7.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.4817, allocations: 18.05 kB / 0.5208 GB, free: 7.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002731/0.482, allocations: 123.1 kB / 0.5209 GB, free: 7.316 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.4821, allocations: 0.6978 MB / 0.5216 GB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.04e-05/0.4822, allocations: 11.88 kB / 0.5216 GB, free: 6.613 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.4822, allocations: 17.84 kB / 0.5216 GB, free: 6.605 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4822, allocations: 0 / 0.5216 GB, free: 6.605 MB / 346.7 MB Notification: Performance of Templates: time 0.002663/0.4849, allocations: 0.8399 MB / 0.5224 GB, free: 6.531 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)