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.00148/0.001487, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 193.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.1 MB / 222.4 MB, free: 4.551 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.4202/0.4202, allocations: 39.94 MB / 309.7 MB, free: 9.328 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.001736/0.001736, allocations: 67.89 kB / 377.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1464, allocations: 56.89 MB / 434.5 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003015/0.1494, allocations: 1.516 MB / 436 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008974/0.1503, allocations: 0.5207 MB / 436.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.251e-05/0.1504, allocations: 3.938 kB / 436.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.1505, allocations: 3.938 kB / 436.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.1506, allocations: 15.86 kB / 436.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.1508, allocations: 43.89 kB / 436.6 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.1509, allocations: 87.7 kB / 436.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.1511, allocations: 11.98 kB / 436.7 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1512, allocations: 43.83 kB / 436.7 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.512e-05/0.1513, allocations: 35.84 kB / 436.8 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.166e-05/0.1513, allocations: 8 kB / 436.8 MB, free: 1.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.995e-05/0.1514, allocations: 8 kB / 436.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.1514, allocations: 23.91 kB / 436.8 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.559e-05/0.1515, allocations: 39.8 kB / 436.8 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.1516, allocations: 75.98 kB / 436.9 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1516, allocations: 0 / 436.9 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1516, allocations: 4 kB / 436.9 MB, free: 1.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1517, allocations: 0 / 436.9 MB, free: 1.242 MB / 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.0007453/0.1524, allocations: 398.8 kB / 437.3 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.1525, allocations: 19.89 kB / 437.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.1525, allocations: 8.844 kB / 437.3 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.1527, allocations: 180.2 kB / 437.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.1527, allocations: 4.375 kB / 437.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.1527, allocations: 12.11 kB / 437.5 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.153, allocations: 85.66 kB / 437.6 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.153, allocations: 0 / 437.6 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.153, allocations: 7.984 kB / 437.6 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.153, allocations: 0 / 437.6 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.1532, allocations: 47.97 kB / 437.7 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000598/0.1538, allocations: 320.7 kB / 438 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.154, allocations: 94.52 kB / 438.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.121e-05/0.1541, allocations: 44.78 kB / 438.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.1541, allocations: 4 kB / 438.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.1544, allocations: 99.36 kB / 438.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.1544, allocations: 0 / 438.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004494/0.1549, allocations: 194 kB / 438.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.155, allocations: 55.41 kB / 438.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.297e-05/0.1551, allocations: 117.8 kB / 438.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.1551, allocations: 33.92 kB / 438.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.1552, allocations: 96.41 kB / 438.7 MB, free: 15.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.1552, allocations: 43.47 kB / 438.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.1553, allocations: 37.66 kB / 438.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1554, allocations: 322.8 kB / 439.1 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.1556, allocations: 35.97 kB / 439.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1557, allocations: 81.12 kB / 439.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.1559, allocations: 117 kB / 439.3 MB, free: 14.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1559, allocations: 4 kB / 439.3 MB, free: 14.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002639/0.1562, allocations: 153.4 kB / 439.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1562, allocations: 8 kB / 439.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1562, allocations: 3.938 kB / 439.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1562, allocations: 7.938 kB / 439.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1564, allocations: 19.92 kB / 439.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.1564, allocations: 4 kB / 439.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.1564, allocations: 16 kB / 439.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1565, allocations: 8 kB / 439.5 MB, free: 14.36 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.1566, allocations: 128.1 kB / 439.7 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.1566, allocations: 11.91 kB / 439.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.1566, allocations: 12.44 kB / 439.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-06/0.1566, allocations: 0 / 439.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.1567, allocations: 4 kB / 439.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1567, allocations: 7.922 kB / 439.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005373/0.1572, allocations: 442.6 kB / 440.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1572, allocations: 0 / 440.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.445e-05/0.1573, allocations: 12.31 kB / 440.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1573, allocations: 0 / 440.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.1573, allocations: 3.984 kB / 440.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1573, allocations: 4 kB / 440.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1573, allocations: 3.938 kB / 440.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.1577, allocations: 255.3 kB / 440.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.1577, allocations: 88.95 kB / 440.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.1578, allocations: 4 kB / 440.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1579, allocations: 7.984 kB / 440.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.1579, allocations: 7.984 kB / 440.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.158, allocations: 8 kB / 440.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.127e-05/0.158, allocations: 91.27 kB / 440.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.158, allocations: 0 / 440.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.1583, allocations: 24 kB / 440.6 MB, free: 13.16 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001142/0.1584, allocations: 111.1 kB / 440.7 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002749/0.1587, allocations: 107.9 kB / 440.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1587, allocations: 3.938 kB / 440.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1588, allocations: 47.97 kB / 440.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.1591, allocations: 31.56 kB / 440.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004776/0.1596, allocations: 207.6 kB / 441.1 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1599, allocations: 0.6962 MB / 441.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.359e-05/0.1599, allocations: 12.88 kB / 441.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.651e-05/0.16, allocations: 15.44 kB / 441.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.16, allocations: 0 / 441.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of Templates: time 0.003954/0.1639, allocations: 0.9919 MB / 442.9 MB, free: 10.89 MB / 382.1 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)