Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001004/0.001004, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.152/1.152, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001639/0.001639, allocations: 99.5 kB / 223.2 MB, free: 4.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1893/0.1893, allocations: 37.99 MB / 300.4 MB, free: 5.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.001e-05, allocations: 0 / 357 MB, free: 32.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 48.7 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3836/0.5039, allocations: 78.47 MB / 484.2 MB, free: 18.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.5041, allocations: 63.03 kB / 484.2 MB, free: 18.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01556/0.5197, allocations: 5.914 MB / 490.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5197, allocations: 0 / 490.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.5198, allocations: 7.75 kB / 490.1 MB, free: 17.91 MB / 330.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.001045/0.5208, allocations: 0.7478 MB / 490.9 MB, free: 17.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.5209, allocations: 15.72 kB / 490.9 MB, free: 17.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.482e-05/0.521, allocations: 45.89 kB / 490.9 MB, free: 17.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.5211, allocations: 209.7 kB / 491.1 MB, free: 17.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.5211, allocations: 30.94 kB / 491.2 MB, free: 17.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.5212, allocations: 41.19 kB / 491.2 MB, free: 17.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.5217, allocations: 329.1 kB / 491.5 MB, free: 17.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.5218, allocations: 3.141 kB / 491.5 MB, free: 17.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.5218, allocations: 18.56 kB / 491.6 MB, free: 17.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.5218, allocations: 7.656 kB / 491.6 MB, free: 17.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.5222, allocations: 247.8 kB / 491.8 MB, free: 17.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.5237, allocations: 0.9497 MB / 492.8 MB, free: 16.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.5245, allocations: 412.3 kB / 493.2 MB, free: 16.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.5247, allocations: 159.5 kB / 493.3 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.5248, allocations: 4.203 kB / 493.3 MB, free: 16.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004046/0.5252, allocations: 316.7 kB / 493.6 MB, free: 16.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.944e-06/0.5252, allocations: 0 / 493.6 MB, free: 16.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.0006824/0.5259, allocations: 463.3 kB / 494.1 MB, free: 16.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.5259, allocations: 172.9 kB / 494.3 MB, free: 16.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.5261, allocations: 197.3 kB / 494.4 MB, free: 16.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.5261, allocations: 47.05 kB / 494.5 MB, free: 16.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.5262, allocations: 177.7 kB / 494.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-05/0.5263, allocations: 113.4 kB / 494.8 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/0.5263, allocations: 10.94 kB / 494.8 MB, free: 15.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.5264, allocations: 351.3 kB / 495.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.5266, allocations: 129.8 kB / 495.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.5268, allocations: 149.2 kB / 495.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.527, allocations: 214.3 kB / 495.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.527, allocations: 7.625 kB / 495.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007754/0.5278, allocations: 0.5579 MB / 496.2 MB, free: 15.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.5279, allocations: 114.3 kB / 496.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5279, allocations: 0 / 496.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001516/0.528, allocations: 34.22 kB / 496.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.5282, allocations: 42.36 kB / 496.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009158/0.5291, allocations: 1.425 MB / 497.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.5294, allocations: 73.03 kB / 497.9 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.5295, allocations: 22.69 kB / 497.9 MB, free: 13.76 MB / 330.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.0001611/0.5297, allocations: 212 kB / 498.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.5297, allocations: 38.28 kB / 498.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.755e-05/0.5298, allocations: 35.81 kB / 498.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.5298, allocations: 3.656 kB / 498.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5298, allocations: 0 / 498.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5298, allocations: 3.797 kB / 498.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009806/0.5308, allocations: 0.9667 MB / 499.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5308, allocations: 0 / 499.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.531, allocations: 32.5 kB / 499.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.531, allocations: 5.438 kB / 499.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.531, allocations: 16.58 kB / 499.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.531, allocations: 8.594 kB / 499.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.531, allocations: 0.625 kB / 499.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.5317, allocations: 0.5896 MB / 499.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.5318, allocations: 133.1 kB / 499.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.321e-05/0.5319, allocations: 17.45 kB / 499.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/0.5322, allocations: 72.89 kB / 0.4883 GB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.5324, allocations: 65.98 kB / 0.4883 GB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.5325, allocations: 21.84 kB / 0.4884 GB, free: 12.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.5326, allocations: 144.6 kB / 0.4885 GB, free: 12.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5326, allocations: 0 / 0.4885 GB, free: 12.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006622/0.5332, allocations: 122.7 kB / 0.4886 GB, free: 12.72 MB / 330.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.0002684/0.5335, allocations: 162.8 kB / 0.4888 GB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007406/0.5343, allocations: 0.6969 MB / 0.4895 GB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.5343, allocations: 4 kB / 0.4895 GB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.5346, allocations: 341.8 kB / 0.4898 GB, free: 12.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.5349, allocations: 18.31 kB / 0.4898 GB, free: 12.11 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007635/0.5356, allocations: 481.9 kB / 0.4903 GB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.5359, allocations: 0.8013 MB / 0.4911 GB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.536, allocations: 26.3 kB / 0.4911 GB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.172e-05/0.5361, allocations: 34.3 kB / 0.4911 GB, free: 11.23 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5361, allocations: 0 / 0.4911 GB, free: 11.23 MB / 330.7 MB Notification: Performance of Templates: time 0.007043/0.5431, allocations: 3.97 MB / 0.495 GB, free: 10.07 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe 2>&1)