Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01445/0.01445, allocations: 176.1 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.073/2.073, allocations: 194.5 MB / 210.3 MB, free: 7.629 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002055/0.002055, allocations: 116.7 kB / 255.6 MB, free: 10.24 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3759/0.3759, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004688, allocations: 10.44 kB / 406.3 MB, free: 51.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 54.88 MB / 461.1 MB, free: 3.219 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5126/0.6135, allocations: 84.95 MB / 0.5333 GB, free: 26.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.6138, allocations: 61.95 kB / 0.5333 GB, free: 26.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03725/0.651, allocations: 5.959 MB / 0.5392 GB, free: 26.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.6511, allocations: 0 / 0.5392 GB, free: 26.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.6512, allocations: 8.438 kB / 0.5392 GB, free: 26.14 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002714/0.6539, allocations: 0.7816 MB / 0.5399 GB, free: 25.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.654, allocations: 8.812 kB / 0.5399 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.6542, allocations: 81.14 kB / 0.54 GB, free: 25.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.6545, allocations: 43.44 kB / 0.5401 GB, free: 25.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.6547, allocations: 211.4 kB / 0.5403 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.543e-05/0.6548, allocations: 36.7 kB / 0.5403 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.655, allocations: 40.09 kB / 0.5403 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.6567, allocations: 418 kB / 0.5407 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.6568, allocations: 0 / 0.5407 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.35e-05/0.6569, allocations: 18.17 kB / 0.5407 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.657, allocations: 16.14 kB / 0.5408 GB, free: 25.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.6587, allocations: 316.7 kB / 0.5411 GB, free: 25.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003841/0.6625, allocations: 0.9543 MB / 0.542 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/0.6652, allocations: 447.3 kB / 0.5424 GB, free: 24.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.948e-05/0.6653, allocations: 4.328 kB / 0.5424 GB, free: 24.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/0.6667, allocations: 350.6 kB / 0.5428 GB, free: 24.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 6.241e-06/0.6668, allocations: 0 / 0.5428 GB, free: 24.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.003549/0.6704, allocations: 0.8465 MB / 0.5436 GB, free: 24.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.6705, allocations: 202 kB / 0.5438 GB, free: 24.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.6709, allocations: 200.2 kB / 0.544 GB, free: 24.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.6711, allocations: 50.58 kB / 0.544 GB, free: 24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.6712, allocations: 167.8 kB / 0.5442 GB, free: 23.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.6714, allocations: 108.1 kB / 0.5443 GB, free: 23.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/0.6715, allocations: 9.188 kB / 0.5443 GB, free: 23.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.6716, allocations: 346.2 kB / 0.5446 GB, free: 23.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008502/0.6725, allocations: 163.1 kB / 0.5448 GB, free: 23.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008995/0.6734, allocations: 220.3 kB / 0.545 GB, free: 23.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008558/0.6743, allocations: 252.8 kB / 0.5452 GB, free: 23.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.6743, allocations: 0 / 0.5452 GB, free: 23.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002466/0.6768, allocations: 0.5716 MB / 0.5458 GB, free: 23.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.677, allocations: 117.5 kB / 0.5459 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.677, allocations: 7.953 kB / 0.5459 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/0.677, allocations: 2.375 kB / 0.5459 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.6776, allocations: 51.73 kB / 0.546 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.6777, allocations: 2.375 kB / 0.546 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008641/0.6785, allocations: 76.19 kB / 0.546 GB, free: 23.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.6787, allocations: 23.3 kB / 0.5461 GB, free: 23.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 4 * 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.0005311/0.6792, allocations: 234.9 kB / 0.5463 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.6794, allocations: 32.86 kB / 0.5463 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.6796, allocations: 40.02 kB / 0.5464 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.6796, allocations: 8.766 kB / 0.5464 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.6796, allocations: 3.938 kB / 0.5464 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.6797, allocations: 3.656 kB / 0.5464 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003661/0.6833, allocations: 1.028 MB / 0.5474 GB, free: 22.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.6834, allocations: 4 kB / 0.5474 GB, free: 22.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.6838, allocations: 36.67 kB / 0.5474 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.6838, allocations: 5.078 kB / 0.5474 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.199e-05/0.6839, allocations: 11.91 kB / 0.5474 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.684, allocations: 3.266 kB / 0.5474 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.684, allocations: 0 / 0.5474 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.6869, allocations: 0.6569 MB / 0.5481 GB, free: 22.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.6871, allocations: 108.1 kB / 0.5482 GB, free: 22.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.6873, allocations: 18.67 kB / 0.5482 GB, free: 22.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009987/0.6883, allocations: 74.81 kB / 0.5483 GB, free: 22.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000384/0.6888, allocations: 64.92 kB / 0.5483 GB, free: 22.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.689, allocations: 19.23 kB / 0.5483 GB, free: 22.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002776/0.6893, allocations: 145.8 kB / 0.5485 GB, free: 21.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6893, allocations: 0 / 0.5485 GB, free: 21.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001108/0.6904, allocations: 116.3 kB / 0.5486 GB, free: 21.97 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: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.003112/0.6935, allocations: 1.264 MB / 0.5498 GB, free: 21.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.6958, allocations: 0.6591 MB / 0.5505 GB, free: 20.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.6959, allocations: 0 / 0.5505 GB, free: 20.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.6973, allocations: 375.9 kB / 0.5508 GB, free: 20.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.6979, allocations: 34.44 kB / 0.5509 GB, free: 20.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007006/0.7049, allocations: 1.951 MB / 0.5528 GB, free: 20.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.7054, allocations: 0.7995 MB / 0.5535 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003518/0.7058, allocations: 25.09 kB / 0.5536 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.7062, allocations: 111.1 kB / 0.5537 GB, free: 19.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7062, allocations: 0 / 0.5537 GB, free: 19.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.7455, allocations: 6.549 MB / 0.5601 GB, free: 18.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.7458, allocations: 153.7 kB / 0.5602 GB, free: 18.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.907/3.653, allocations: 0 / 0.5602 GB, free: 18.59 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat