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.001283/0.001284, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001752/0.001751, allocations: 190.2 kB / 16.14 MB, free: 6.711 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.802/1.802, allocations: 205.1 MB / 222 MB, free: 4.746 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.4227/0.4227, allocations: 39.93 MB / 309.3 MB, free: 9.375 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.001442/0.001442, allocations: 63 kB / 376.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1673, allocations: 56.9 MB / 433.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.005539/0.173, allocations: 1.983 MB / 435.8 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1748, allocations: 0.6749 MB / 436.5 MB, free: 1.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.175, allocations: 3.938 kB / 436.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.1753, allocations: 35.77 kB / 436.5 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.1755, allocations: 59.67 kB / 436.6 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.1761, allocations: 91.83 kB / 436.6 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.1765, allocations: 263.2 kB / 436.9 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.1767, allocations: 48.36 kB / 437 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.177, allocations: 123.5 kB / 437.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.1773, allocations: 159.4 kB / 437.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.1774, allocations: 12 kB / 437.2 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.575e-05/0.1775, allocations: 16 kB / 437.3 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.1777, allocations: 75.72 kB / 437.3 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.1779, allocations: 119.3 kB / 437.4 MB, free: 480 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.1782, allocations: 239.4 kB / 437.7 MB, free: 240 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1783, allocations: 0 / 437.7 MB, free: 240 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1783, allocations: 0 / 437.7 MB, free: 240 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.1783, allocations: 4 kB / 437.7 MB, free: 236 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.001713/0.18, allocations: 0.6325 MB / 438.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1801, allocations: 8.031 kB / 438.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.523e-05/0.1802, allocations: 28.66 kB / 438.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.1805, allocations: 252.7 kB / 438.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.1806, allocations: 20.36 kB / 438.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.1806, allocations: 28.11 kB / 438.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/0.1811, allocations: 233.4 kB / 438.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1811, allocations: 0 / 438.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.1811, allocations: 11.98 kB / 438.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.1812, allocations: 4 kB / 438.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002996/0.1815, allocations: 131.9 kB / 439 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1825, allocations: 0.5586 MB / 439.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.1831, allocations: 322.7 kB / 439.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.1833, allocations: 128.8 kB / 440 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.1834, allocations: 4 kB / 440 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.1838, allocations: 239.4 kB / 440.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 4.418e-06/0.1838, allocations: 4 kB / 440.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001092/0.1849, allocations: 0.5751 MB / 440.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.185, allocations: 79.31 kB / 440.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.1853, allocations: 208.8 kB / 441.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.1853, allocations: 45.7 kB / 441.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1854, allocations: 129 kB / 441.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.217e-05/0.1855, allocations: 98.8 kB / 441.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.1857, allocations: 94.25 kB / 441.5 MB, free: 12.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1858, allocations: 346.8 kB / 441.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.186, allocations: 105.1 kB / 441.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.1863, allocations: 293.3 kB / 442.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.187, allocations: 426.8 kB / 442.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.187, allocations: 3.938 kB / 442.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009186/0.188, allocations: 445.1 kB / 443.1 MB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.188, allocations: 8 kB / 443.1 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.188, allocations: 4 kB / 443.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.149e-05/0.1881, allocations: 15.94 kB / 443.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.1884, allocations: 59.84 kB / 443.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.1884, allocations: 15.92 kB / 443.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.1887, allocations: 43.67 kB / 443.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.1887, allocations: 24.31 kB / 443.2 MB, free: 10.3 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.0002916/0.189, allocations: 197.7 kB / 443.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.171e-05/0.1891, allocations: 35.61 kB / 443.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.671e-05/0.1892, allocations: 26.94 kB / 443.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.1892, allocations: 4 kB / 443.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.1892, allocations: 4 kB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.1892, allocations: 3.984 kB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.1912, allocations: 0.9294 MB / 444.4 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1913, allocations: 0 / 444.4 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.343e-05/0.1914, allocations: 19.92 kB / 444.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1914, allocations: 4 kB / 444.4 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.1914, allocations: 11.98 kB / 444.5 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1914, allocations: 0 / 444.5 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1915, allocations: 0 / 444.5 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1926, allocations: 0.5578 MB / 445 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.627e-05/0.1927, allocations: 104.7 kB / 445.1 MB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.1927, allocations: 23.97 kB / 445.1 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.1931, allocations: 31.97 kB / 445.2 MB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1932, allocations: 27.95 kB / 445.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.126e-05/0.1932, allocations: 19.98 kB / 445.2 MB, free: 8.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.1934, allocations: 148.5 kB / 445.4 MB, free: 8.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1934, allocations: 0 / 445.4 MB, free: 8.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.194, allocations: 75.92 kB / 445.4 MB, free: 7.984 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.0002143/0.1942, allocations: 139.1 kB / 445.6 MB, free: 7.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007931/0.195, allocations: 332.8 kB / 445.9 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.195, allocations: 7.938 kB / 445.9 MB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003894/0.1954, allocations: 160.5 kB / 446.1 MB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.196, allocations: 43.77 kB / 446.1 MB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.1976, allocations: 0.5978 MB / 446.7 MB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.198, allocations: 0.753 MB / 447.5 MB, free: 5.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.1982, allocations: 38.97 kB / 447.5 MB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.941e-05/0.1983, allocations: 31.42 kB / 447.5 MB, free: 5.844 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1983, allocations: 0 / 447.5 MB, free: 5.844 MB / 382.1 MB Notification: Performance of Templates: time 0.008833/0.2071, allocations: 2.889 MB / 450.4 MB, free: 2.961 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)