Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.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.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002577/0.002577, allocations: 190.3 kB / 16.25 MB, free: 6.617 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.622/1.622, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.3755/0.3755, allocations: 39.93 MB / 309.4 MB, free: 9.68 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.001716/0.001717, allocations: 71.89 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1544, allocations: 56.88 MB / 434 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003489/0.1579, allocations: 1.968 MB / 436 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1591, allocations: 0.6827 MB / 436.6 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.021e-05/0.1593, allocations: 3.938 kB / 436.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002434/0.1595, allocations: 31.83 kB / 436.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.1596, allocations: 63.61 kB / 436.7 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.16, allocations: 91.89 kB / 436.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.1603, allocations: 279.1 kB / 437.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1605, allocations: 48.36 kB / 437.1 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1606, allocations: 123.5 kB / 437.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.1609, allocations: 175.4 kB / 437.4 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.161, allocations: 24 kB / 437.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.946e-05/0.161, allocations: 23.94 kB / 437.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.1612, allocations: 87.78 kB / 437.6 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1613, allocations: 127.3 kB / 437.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.1616, allocations: 251.4 kB / 437.9 MB, free: 344 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1616, allocations: 0 / 437.9 MB, free: 344 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1616, allocations: 0 / 437.9 MB, free: 344 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1616, allocations: 0 / 437.9 MB, free: 344 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001317/0.1629, allocations: 0.6364 MB / 438.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.163, allocations: 11.89 kB / 438.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.1631, allocations: 28.66 kB / 438.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.1634, allocations: 260.6 kB / 438.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.1634, allocations: 16.38 kB / 438.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.042e-05/0.1635, allocations: 24.11 kB / 438.9 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.1639, allocations: 229.4 kB / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.164, allocations: 4 kB / 439.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.164, allocations: 11.98 kB / 439.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.164, allocations: 4 kB / 439.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.1643, allocations: 127.9 kB / 439.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1654, allocations: 0.5625 MB / 439.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004949/0.1659, allocations: 318.7 kB / 440.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.1661, allocations: 128.8 kB / 440.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.1661, allocations: 4 kB / 440.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.1666, allocations: 251.3 kB / 440.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.154e-06/0.1666, allocations: 0 / 440.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001023/0.1676, allocations: 0.5751 MB / 441.1 MB, free: 13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.1677, allocations: 71.39 kB / 441.2 MB, free: 12.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.1679, allocations: 204.8 kB / 441.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.1679, allocations: 49.69 kB / 441.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.694e-05/0.168, allocations: 125 kB / 441.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.678e-05/0.1681, allocations: 102.8 kB / 441.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1683, allocations: 98.23 kB / 441.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1684, allocations: 342.8 kB / 442.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1686, allocations: 105.1 kB / 442.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.1689, allocations: 285.4 kB / 442.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004963/0.1694, allocations: 426.8 kB / 442.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1694, allocations: 4 kB / 442.9 MB, free: 11.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006345/0.1701, allocations: 453.2 kB / 443.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.1701, allocations: 8 kB / 443.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1701, allocations: 7.938 kB / 443.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.361e-05/0.1702, allocations: 15.94 kB / 443.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.1704, allocations: 59.84 kB / 443.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.1704, allocations: 15.88 kB / 443.4 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.1706, allocations: 43.67 kB / 443.5 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.1706, allocations: 20 kB / 443.5 MB, free: 10.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 (triggeredMax.y,$PRE.triggeredMax.y,triggeredSampler.y,$PRE.triggeredSampler.y,stateSpace.firstTrigger,$PRE.stateSpace.firstTrigger,stateSpace.x[1],$PRE.stateSpace.x[1],stateSpace.x[2],$PRE.stateSpace.x[2],stateSpace.y[1],$PRE.stateSpace.y[1],transferFunction.firstTrigger,$PRE.transferFunction.firstTrigger,transferFunction.x1,$PRE.transferFunction.x1,transferFunction.xext[1],$PRE.transferFunction.xext[1],transferFunction.xext[2],$PRE.transferFunction.xext[2],transferFunction.x[1],$PRE.transferFunction.x[1],transferFunction.y,$PRE.transferFunction.y,unitDelay.firstTrigger,$PRE.unitDelay.firstTrigger,unitDelay.y,$PRE.unitDelay.y,firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,sampler.firstTrigger,$PRE.sampler.firstTrigger,$whenCondition8,sampler.sampleTrigger,$whenCondition1,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$whenCondition3,unitDelay.sampleTrigger,$whenCondition4,transferFunction.sampleTrigger,$whenCondition5,stateSpace.sampleTrigger,$whenCondition6,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition7,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002065/0.1709, allocations: 209.8 kB / 443.7 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.1709, allocations: 31.62 kB / 443.7 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.982e-05/0.171, allocations: 34.92 kB / 443.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.171, allocations: 7.938 kB / 443.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.171, allocations: 0 / 443.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.171, allocations: 0 / 443.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.1724, allocations: 0.9255 MB / 444.7 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1724, allocations: 0 / 444.7 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.959e-05/0.1725, allocations: 23.92 kB / 444.7 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1725, allocations: 0 / 444.7 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.1725, allocations: 15.98 kB / 444.7 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1725, allocations: 4 kB / 444.7 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1725, allocations: 0 / 444.7 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007224/0.1732, allocations: 0.5538 MB / 445.3 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.1733, allocations: 104.8 kB / 445.4 MB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.1734, allocations: 15.98 kB / 445.4 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.1736, allocations: 31.97 kB / 445.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.607e-05/0.1737, allocations: 31.95 kB / 445.5 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.569e-05/0.1737, allocations: 15.98 kB / 445.5 MB, free: 8.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001217/0.1739, allocations: 152.5 kB / 445.6 MB, free: 8.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1739, allocations: 0 / 445.6 MB, free: 8.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1742, allocations: 75.92 kB / 445.7 MB, free: 8.074 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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001889/0.1744, allocations: 143 kB / 445.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.1751, allocations: 364.9 kB / 446.2 MB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1751, allocations: 0 / 446.2 MB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.1753, allocations: 168.1 kB / 446.4 MB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.1758, allocations: 47.97 kB / 446.4 MB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.177, allocations: 0.5844 MB / 447 MB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.1773, allocations: 0.7605 MB / 447.8 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.007e-05/0.1774, allocations: 34.97 kB / 447.8 MB, free: 5.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.697e-05/0.1775, allocations: 35.38 kB / 447.8 MB, free: 5.895 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1775, allocations: 3.938 kB / 447.8 MB, free: 5.891 MB / 382.1 MB Notification: Performance of Templates: time 0.006216/0.1837, allocations: 3.054 MB / 450.9 MB, free: 2.844 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe 2>&1)