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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 91.92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001996/0.001996, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4474/0.4474, allocations: 40 MB / 310.4 MB, free: 9.621 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006317/0.0006321, allocations: 15.98 kB / 378.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.15, allocations: 57.95 MB / 436.8 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001955/0.152, allocations: 1.217 MB / 438 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009679/0.153, allocations: 0.4961 MB / 438.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.327e-05/0.1531, allocations: 4 kB / 438.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.79e-05/0.1531, allocations: 7.875 kB / 438.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.1532, allocations: 15.84 kB / 438.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.1534, allocations: 27.98 kB / 438.6 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1536, allocations: 79.75 kB / 438.6 MB, free: 444 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1537, allocations: 15.98 kB / 438.6 MB, free: 428 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.1538, allocations: 31.84 kB / 438.7 MB, free: 396 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.154, allocations: 39.83 kB / 438.7 MB, free: 356 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.154, allocations: 4 kB / 438.7 MB, free: 352 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.576e-05/0.154, allocations: 4 kB / 438.7 MB, free: 348 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.154, allocations: 15.92 kB / 438.7 MB, free: 332 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.575e-05/0.1541, allocations: 37.7 kB / 438.8 MB, free: 288 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.365e-05/0.1542, allocations: 52.11 kB / 438.8 MB, free: 236 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1542, allocations: 4 kB / 438.8 MB, free: 232 kB / 366.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1542, allocations: 0 / 438.8 MB, free: 232 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1542, allocations: 3.938 kB / 438.8 MB, free: 228 kB / 366.1 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.0006434/0.1549, allocations: 387.1 kB / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1549, allocations: 12.03 kB / 439.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.673e-05/0.155, allocations: 11.86 kB / 439.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.1551, allocations: 174.9 kB / 439.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.1552, allocations: 7.984 kB / 439.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.1552, allocations: 12 kB / 439.4 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.1554, allocations: 89.62 kB / 439.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1554, allocations: 0 / 439.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.1554, allocations: 0 / 439.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1554, allocations: 0 / 439.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.1556, allocations: 59.86 kB / 439.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.1561, allocations: 320.8 kB / 439.9 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.1563, allocations: 94.53 kB / 440 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.643e-05/0.1564, allocations: 44.84 kB / 440 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.1564, allocations: 0 / 440 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.1567, allocations: 111.3 kB / 440.1 MB, free: 14.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.1567, allocations: 0 / 440.1 MB, free: 14.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004126/0.1571, allocations: 189.6 kB / 440.3 MB, free: 14.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.1572, allocations: 55.41 kB / 440.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.1573, allocations: 121.9 kB / 440.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.1573, allocations: 33.7 kB / 440.5 MB, free: 14.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.885e-05/0.1574, allocations: 92.41 kB / 440.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.1574, allocations: 35.55 kB / 440.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.1574, allocations: 4 kB / 440.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1576, allocations: 326.8 kB / 441 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.17e-05/0.1577, allocations: 32.36 kB / 441 MB, free: 13.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.1578, allocations: 82.03 kB / 441.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.1579, allocations: 55.88 kB / 441.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1579, allocations: 0 / 441.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002706/0.1582, allocations: 153.4 kB / 441.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1582, allocations: 8.156 kB / 441.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1582, allocations: 3.953 kB / 441.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1582, allocations: 4 kB / 441.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.1584, allocations: 27.92 kB / 441.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1584, allocations: 4 kB / 441.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.517e-05/0.1585, allocations: 15.83 kB / 441.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.1585, allocations: 8 kB / 441.4 MB, free: 13.46 MB / 382.1 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 () * Number of clocked 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.0001106/0.1586, allocations: 128 kB / 441.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.1586, allocations: 15.91 kB / 441.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.453e-05/0.1587, allocations: 12.48 kB / 441.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1587, allocations: 7.891 kB / 441.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.1587, allocations: 0 / 441.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1587, allocations: 4 kB / 441.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005611/0.1593, allocations: 442.4 kB / 442 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1593, allocations: 0 / 442 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.538e-05/0.1593, allocations: 15.95 kB / 442 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1594, allocations: 3.984 kB / 442 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1594, allocations: 7.984 kB / 442 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1594, allocations: 4 kB / 442 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1594, allocations: 0 / 442 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.1598, allocations: 256 kB / 442.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.1598, allocations: 84.95 kB / 442.3 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.1599, allocations: 7.953 kB / 442.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.16, allocations: 11.98 kB / 442.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.16, allocations: 11.92 kB / 442.3 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.1601, allocations: 4.375 kB / 442.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.364e-05/0.1601, allocations: 95.2 kB / 442.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1601, allocations: 0 / 442.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1604, allocations: 24 kB / 442.5 MB, free: 12.25 MB / 382.1 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) * Number of clocked states: 0 () * 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.0001515/0.1606, allocations: 111.2 kB / 442.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.1608, allocations: 104 kB / 442.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1608, allocations: 0 / 442.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.1609, allocations: 51.92 kB / 442.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1612, allocations: 16.3 kB / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004508/0.1617, allocations: 221.3 kB / 443 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.162, allocations: 0.7004 MB / 443.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.2e-05/0.162, allocations: 12.88 kB / 443.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.1621, allocations: 15.44 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1621, allocations: 0 / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of Templates: time 0.00352/0.1656, allocations: 0.8707 MB / 444.6 MB, free: 10.1 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: