Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.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.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.000978/0.0009779, allocations: 176.2 kB / 7.652 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.414/1.414, allocations: 194.4 MB / 202.4 MB, free: 12.95 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.001657/0.001657, allocations: 108.2 kB / 247.4 MB, free: 15.96 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.1661/0.1661, allocations: 39.95 MB / 332.2 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.568e-05, allocations: 4 kB / 393.3 MB, free: 3.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2443, allocations: 54.86 MB / 448.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3564, allocations: 84.19 MB / 0.5199 GB, free: 9.367 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.3567, allocations: 63.97 kB / 0.52 GB, free: 9.305 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01694/0.3736, allocations: 5.903 MB / 0.5257 GB, free: 3.383 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3737, allocations: 0 / 0.5257 GB, free: 3.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.3737, allocations: 12 kB / 0.5257 GB, free: 3.371 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.001214/0.3749, allocations: 0.7341 MB / 0.5265 GB, free: 2.566 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.375, allocations: 12.03 kB / 0.5265 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.66e-05/0.3751, allocations: 51.39 kB / 0.5265 GB, free: 2.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.3753, allocations: 207.7 kB / 0.5267 GB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.3753, allocations: 16 kB / 0.5267 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.3754, allocations: 28 kB / 0.5268 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004309/0.3758, allocations: 225.5 kB / 0.527 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.3764, allocations: 329.3 kB / 0.5273 GB, free: 1.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3764, allocations: 0 / 0.5273 GB, free: 1.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.3764, allocations: 11.89 kB / 0.5273 GB, free: 1.648 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.3765, allocations: 8 kB / 0.5273 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.3781, allocations: 0.8817 MB / 0.5282 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008689/0.379, allocations: 386.6 kB / 0.5285 GB, free: 340 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.3792, allocations: 149.1 kB / 0.5287 GB, free: 188 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.3793, allocations: 4.328 kB / 0.5287 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.22/0.5992, allocations: 289.8 kB / 0.529 GB, free: 85.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.729e-06/0.5993, allocations: 2.562 kB / 0.529 GB, free: 85.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.000924/0.6002, allocations: 374.5 kB / 0.5293 GB, free: 85.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.6003, allocations: 196.6 kB / 0.5295 GB, free: 85.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.6006, allocations: 191.9 kB / 0.5297 GB, free: 85.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.6006, allocations: 37.14 kB / 0.5297 GB, free: 85.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.6007, allocations: 178.7 kB / 0.5299 GB, free: 85.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.438e-05/0.6008, allocations: 103.9 kB / 0.53 GB, free: 85.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.6009, allocations: 1.375 kB / 0.53 GB, free: 85.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.599e-05/0.601, allocations: 343.4 kB / 0.5303 GB, free: 84.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.6012, allocations: 130.4 kB / 0.5304 GB, free: 84.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.6014, allocations: 163.2 kB / 0.5306 GB, free: 84.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.6017, allocations: 105.2 kB / 0.5307 GB, free: 84.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.6017, allocations: 3.719 kB / 0.5307 GB, free: 84.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008686/0.6026, allocations: 423.5 kB / 0.5311 GB, free: 84.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.734e-05/0.6027, allocations: 118.1 kB / 0.5312 GB, free: 84.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.6027, allocations: 1.922 kB / 0.5312 GB, free: 84.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.6029, allocations: 36.06 kB / 0.5313 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.6031, allocations: 40.81 kB / 0.5313 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009367/0.604, allocations: 1.378 MB / 0.5326 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.6044, allocations: 67.39 kB / 0.5327 GB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.6044, allocations: 24.77 kB / 0.5327 GB, free: 83.4 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.6046, allocations: 205.9 kB / 0.5329 GB, free: 83.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.6047, allocations: 27.62 kB / 0.5329 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.6048, allocations: 37.83 kB / 0.533 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.6048, allocations: 8.125 kB / 0.533 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.6048, allocations: 1.094 kB / 0.533 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.6048, allocations: 2.891 kB / 0.533 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009789/0.6058, allocations: 0.8074 MB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.6058, allocations: 0 / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.6059, allocations: 36.69 kB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.606, allocations: 1.375 kB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.606, allocations: 11.36 kB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.606, allocations: 4.969 kB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.606, allocations: 1.125 kB / 0.5338 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006545/0.6067, allocations: 0.4988 MB / 0.5343 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.6067, allocations: 105.6 kB / 0.5344 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.027e-05/0.6068, allocations: 13.55 kB / 0.5344 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.6072, allocations: 68.52 kB / 0.5345 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.6073, allocations: 69.34 kB / 0.5346 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-05/0.6074, allocations: 19 kB / 0.5346 GB, free: 82.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.937e-05/0.6075, allocations: 135 kB / 0.5347 GB, free: 82.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6075, allocations: 0 / 0.5347 GB, free: 82.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005011/0.608, allocations: 103 kB / 0.5348 GB, free: 82.52 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) * 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.0002835/0.6083, allocations: 165 kB / 0.535 GB, free: 82.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007923/0.6091, allocations: 0.6618 MB / 0.5356 GB, free: 81.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6091, allocations: 0 / 0.5356 GB, free: 81.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.6095, allocations: 329.1 kB / 0.5359 GB, free: 81.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.6097, allocations: 21.61 kB / 0.536 GB, free: 81.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008659/0.6106, allocations: 447.8 kB / 0.5364 GB, free: 81.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.611, allocations: 0.8098 MB / 0.5372 GB, free: 80.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.6111, allocations: 28.86 kB / 0.5372 GB, free: 80.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-05/0.6112, allocations: 28.56 kB / 0.5372 GB, free: 80.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.703e-06/0.6112, allocations: 0 / 0.5372 GB, free: 80.77 MB / 378.7 MB Notification: Performance of Templates: time 0.00853/0.6197, allocations: 3.927 MB / 0.5411 GB, free: 80.52 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe 2>&1)