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.001933/0.001933, allocations: 181.8 kB / 12.74 MB, free: 2.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.591/1.591, allocations: 194.3 MB / 207.5 MB, free: 3.379 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.001596/0.001596, allocations: 116.6 kB / 252.6 MB, free: 4.812 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1941/0.1941, allocations: 39.94 MB / 337.5 MB, free: 468 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.372e-05/3.374e-05, allocations: 0 / 400.3 MB, free: 69.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.09985, allocations: 54.86 MB / 455.1 MB, free: 14.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4339, allocations: 82.99 MB / 0.5255 GB, free: 8.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.4341, allocations: 66.09 kB / 0.5256 GB, free: 8.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01038/0.4445, allocations: 3.922 MB / 0.5294 GB, free: 5.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4445, allocations: 0 / 0.5294 GB, free: 5.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.4445, allocations: 4 kB / 0.5294 GB, free: 5.121 MB / 346.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.0008169/0.4453, allocations: 0.5717 MB / 0.53 GB, free: 4.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.4454, allocations: 8.031 kB / 0.53 GB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.739e-05/0.4455, allocations: 27.72 kB / 0.53 GB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.4457, allocations: 238.6 kB / 0.5302 GB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.4458, allocations: 19.75 kB / 0.5302 GB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.4458, allocations: 27.91 kB / 0.5303 GB, free: 4.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.4462, allocations: 207.5 kB / 0.5305 GB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4462, allocations: 4 kB / 0.5305 GB, free: 4.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.4462, allocations: 11.73 kB / 0.5305 GB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4462, allocations: 15.89 kB / 0.5305 GB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.4464, allocations: 121.7 kB / 0.5306 GB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008138/0.4473, allocations: 0.5537 MB / 0.5312 GB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.4476, allocations: 306.8 kB / 0.5315 GB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.4478, allocations: 123.2 kB / 0.5316 GB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.4478, allocations: 7.75 kB / 0.5316 GB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.4482, allocations: 232.9 kB / 0.5318 GB, free: 2.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.814e-06/0.4482, allocations: 0 / 0.5318 GB, free: 2.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005927/0.4488, allocations: 446.1 kB / 0.5322 GB, free: 2.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.4488, allocations: 77.91 kB / 0.5323 GB, free: 2.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.449, allocations: 187.5 kB / 0.5325 GB, free: 2.297 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.449, allocations: 43.2 kB / 0.5325 GB, free: 2.258 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.4491, allocations: 127.7 kB / 0.5326 GB, free: 2.152 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/0.4491, allocations: 99.45 kB / 0.5327 GB, free: 2.078 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.496e-05/0.4492, allocations: 10.5 kB / 0.5327 GB, free: 2.074 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.843e-05/0.4492, allocations: 348.3 kB / 0.5331 GB, free: 1.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.4494, allocations: 96.67 kB / 0.5332 GB, free: 1.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.4496, allocations: 281.1 kB / 0.5334 GB, free: 1.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.4498, allocations: 136.4 kB / 0.5336 GB, free: 1.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4498, allocations: 0 / 0.5336 GB, free: 1.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005022/0.4503, allocations: 434.8 kB / 0.534 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4503, allocations: 8 kB / 0.534 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.4503, allocations: 8.062 kB / 0.534 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.4504, allocations: 12 kB / 0.534 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.4505, allocations: 59.41 kB / 0.5341 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.4506, allocations: 11.94 kB / 0.5341 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.4507, allocations: 42.61 kB / 0.5341 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.4508, allocations: 23.75 kB / 0.5341 GB, free: 0.7578 MB / 346.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 () * 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.0001165/0.4509, allocations: 178.9 kB / 0.5343 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.515e-05/0.4509, allocations: 23.72 kB / 0.5343 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.451, allocations: 32.89 kB / 0.5344 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.451, allocations: 4 kB / 0.5344 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.451, allocations: 3.938 kB / 0.5344 GB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.451, allocations: 0 / 0.5344 GB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.4522, allocations: 0.931 MB / 0.5353 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4522, allocations: 4 kB / 0.5353 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.967e-05/0.4523, allocations: 8 kB / 0.5353 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.4523, allocations: 4 kB / 0.5353 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.4524, allocations: 19.84 kB / 0.5353 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4524, allocations: 4 kB / 0.5353 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4524, allocations: 7.953 kB / 0.5353 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.453, allocations: 0.5302 MB / 0.5358 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.4531, allocations: 100.8 kB / 0.5359 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.4531, allocations: 17.28 kB / 0.536 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.4534, allocations: 41.47 kB / 0.536 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.722e-05/0.4534, allocations: 27.27 kB / 0.536 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-05/0.4535, allocations: 19.5 kB / 0.536 GB, free: 15.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.4536, allocations: 153 kB / 0.5362 GB, free: 14.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4536, allocations: 0 / 0.5362 GB, free: 14.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.4539, allocations: 67.94 kB / 0.5363 GB, free: 14.83 MB / 362.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) * 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.0001413/0.4541, allocations: 132.3 kB / 0.5364 GB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00045/0.4546, allocations: 317.6 kB / 0.5367 GB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4546, allocations: 0 / 0.5367 GB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.4548, allocations: 166.6 kB / 0.5368 GB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.4551, allocations: 45.33 kB / 0.5369 GB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009448/0.456, allocations: 383.5 kB / 0.5372 GB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.4564, allocations: 0.7647 MB / 0.538 GB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.642e-05/0.4565, allocations: 38.89 kB / 0.538 GB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.715e-05/0.4566, allocations: 34 kB / 0.5381 GB, free: 13.09 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4566, allocations: 0 / 0.5381 GB, free: 13.09 MB / 362.7 MB Notification: Performance of Templates: time 0.006601/0.4632, allocations: 2.767 MB / 0.5408 GB, free: 10.36 MB / 362.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)