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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.01001/0.01001, allocations: 174.4 kB / 15.12 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.611/1.611, allocations: 194.5 MB / 210.3 MB, free: 7.812 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.002085/0.002085, allocations: 116.6 kB / 255.6 MB, free: 10.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2213/0.2213, allocations: 40.01 MB / 340.8 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005845/0.0005845, allocations: 14.97 kB / 406.1 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.132, allocations: 54.87 MB / 461 MB, free: 3.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1353/0.2673, allocations: 83.08 MB / 0.5313 GB, free: 156 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.2676, allocations: 63.97 kB / 0.5314 GB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2684/0.536, allocations: 3.942 MB / 0.5353 GB, free: 83.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5361, allocations: 0 / 0.5353 GB, free: 83.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.72e-05/0.5361, allocations: 4.656 kB / 0.5353 GB, free: 83.54 MB / 378.7 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.001536/0.5376, allocations: 0.5938 MB / 0.5358 GB, free: 83.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.5377, allocations: 9.938 kB / 0.5358 GB, free: 83.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.5379, allocations: 32.2 kB / 0.5359 GB, free: 83.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.5384, allocations: 237.4 kB / 0.5361 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.209e-05/0.5385, allocations: 15.88 kB / 0.5361 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.5385, allocations: 24.94 kB / 0.5361 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007118/0.5393, allocations: 222.8 kB / 0.5364 GB, free: 82.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.5393, allocations: 0 / 0.5364 GB, free: 82.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.5393, allocations: 18.23 kB / 0.5364 GB, free: 82.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.5394, allocations: 6.953 kB / 0.5364 GB, free: 82.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003912/0.5398, allocations: 139.1 kB / 0.5365 GB, free: 82.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.5411, allocations: 0.5642 MB / 0.5371 GB, free: 82.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.5418, allocations: 321.3 kB / 0.5374 GB, free: 82.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.5418, allocations: 4.906 kB / 0.5374 GB, free: 82.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005431/0.5424, allocations: 252.4 kB / 0.5376 GB, free: 82.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.625e-06/0.5424, allocations: 0 / 0.5376 GB, free: 82.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001507/0.5439, allocations: 0.5647 MB / 0.5382 GB, free: 82.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.507e-05/0.544, allocations: 75.56 kB / 0.5382 GB, free: 82.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.5443, allocations: 190.7 kB / 0.5384 GB, free: 82.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.614e-05/0.5444, allocations: 52.92 kB / 0.5385 GB, free: 82.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.5446, allocations: 127.4 kB / 0.5386 GB, free: 82.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.5448, allocations: 99.47 kB / 0.5387 GB, free: 82.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.5448, allocations: 10.03 kB / 0.5387 GB, free: 82.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.545, allocations: 344 kB / 0.539 GB, free: 81.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.5453, allocations: 102.2 kB / 0.5391 GB, free: 81.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/0.5457, allocations: 288.7 kB / 0.5394 GB, free: 81.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003609/0.546, allocations: 152.6 kB / 0.5395 GB, free: 81.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.5461, allocations: 2.125 kB / 0.5395 GB, free: 81.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009812/0.547, allocations: 442.3 kB / 0.54 GB, free: 81.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.5471, allocations: 7.594 kB / 0.54 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.5471, allocations: 6.375 kB / 0.54 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.5471, allocations: 13.91 kB / 0.54 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.5474, allocations: 58.86 kB / 0.5401 GB, free: 81.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/0.5474, allocations: 18.03 kB / 0.5401 GB, free: 81.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.5477, allocations: 43.98 kB / 0.5401 GB, free: 81.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.5478, allocations: 23.72 kB / 0.5401 GB, free: 81.34 MB / 378.7 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 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,sampler.y,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 (66): * Single equations (assignments): 66 * 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.0002678/0.548, allocations: 197.4 kB / 0.5403 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.857e-05/0.5481, allocations: 27.05 kB / 0.5403 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.443e-05/0.5482, allocations: 36.28 kB / 0.5404 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.5482, allocations: 5.656 kB / 0.5404 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/0.5482, allocations: 0 / 0.5404 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.5482, allocations: 6 kB / 0.5404 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.5499, allocations: 0.9535 MB / 0.5413 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.5499, allocations: 1.156 kB / 0.5413 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.49e-05/0.55, allocations: 14.41 kB / 0.5413 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.55, allocations: 1.406 kB / 0.5413 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.5501, allocations: 14.97 kB / 0.5414 GB, free: 80.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.5501, allocations: 2.219 kB / 0.5414 GB, free: 80.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.5501, allocations: 4 kB / 0.5414 GB, free: 80.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008044/0.5509, allocations: 0.5545 MB / 0.5419 GB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.501e-05/0.551, allocations: 97.08 kB / 0.542 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.379e-05/0.551, allocations: 16.05 kB / 0.542 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.5513, allocations: 38.41 kB / 0.542 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/0.5514, allocations: 32.81 kB / 0.5421 GB, free: 80.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.5514, allocations: 13.33 kB / 0.5421 GB, free: 80.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001304/0.5516, allocations: 154.5 kB / 0.5422 GB, free: 80.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5516, allocations: 1.375 kB / 0.5422 GB, free: 80.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004672/0.5521, allocations: 76.22 kB / 0.5423 GB, free: 80.23 MB / 378.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: 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.pulsStart,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 (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.0001616/0.5522, allocations: 134.5 kB / 0.5424 GB, free: 80.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.5529, allocations: 334.2 kB / 0.5428 GB, free: 80.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5529, allocations: 4.25 kB / 0.5428 GB, free: 80.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.5532, allocations: 172.8 kB / 0.5429 GB, free: 79.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.5535, allocations: 34.94 kB / 0.543 GB, free: 79.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.5549, allocations: 0.5534 MB / 0.5435 GB, free: 79.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.5552, allocations: 0.772 MB / 0.5443 GB, free: 78.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.5553, allocations: 37.02 kB / 0.5443 GB, free: 78.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.438e-05/0.5554, allocations: 29.02 kB / 0.5443 GB, free: 78.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5554, allocations: 3.938 kB / 0.5443 GB, free: 78.89 MB / 378.7 MB Notification: Performance of Templates: time 0.008157/0.5635, allocations: 2.746 MB / 0.547 GB, free: 77.56 MB / 378.7 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)