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.006789/0.006789, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.164/1.164, allocations: 170.8 MB / 186.6 MB, free: 1.023 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.001596/0.001596, allocations: 107.3 kB / 226.2 MB, free: 10.09 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.2806/0.2806, allocations: 38.05 MB / 303.7 MB, free: 42.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005012/0.0005012, allocations: 8 kB / 362.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1077, allocations: 48.7 MB / 411.6 MB, free: 4.828 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3295/0.4373, allocations: 78.56 MB / 490.1 MB, free: 9.168 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.4376, allocations: 66.75 kB / 490.2 MB, free: 9.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01552/0.4531, allocations: 5.926 MB / 496.1 MB, free: 3.965 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4532, allocations: 4 kB / 496.1 MB, free: 3.961 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.4532, allocations: 4 kB / 496.1 MB, free: 3.957 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.001205/0.4544, allocations: 0.7771 MB / 496.9 MB, free: 3.137 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.4545, allocations: 8.031 kB / 496.9 MB, free: 3.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.091e-05/0.4546, allocations: 43.53 kB / 496.9 MB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.4547, allocations: 218.6 kB / 497.2 MB, free: 2.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.294e-05/0.4547, allocations: 39.5 kB / 497.2 MB, free: 2.812 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.4548, allocations: 37.81 kB / 497.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006436/0.4555, allocations: 369 kB / 497.6 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.4555, allocations: 0 / 497.6 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.4555, allocations: 15.12 kB / 497.6 MB, free: 2.512 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.4555, allocations: 12 kB / 497.6 MB, free: 2.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005986/0.4561, allocations: 315.6 kB / 497.9 MB, free: 2.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.4576, allocations: 0.9554 MB / 498.9 MB, free: 1.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.4587, allocations: 448.7 kB / 499.3 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.4587, allocations: 8.266 kB / 499.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004928/0.4592, allocations: 342.5 kB / 499.7 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 1.923e-06/0.4592, allocations: 0 / 499.7 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001249/0.4605, allocations: 0.8449 MB / 0.4888 GB, free: 64 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.4606, allocations: 173.9 kB / 0.4889 GB, free: 15.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.4608, allocations: 200.3 kB / 0.4891 GB, free: 15.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.395e-05/0.4608, allocations: 49.81 kB / 0.4892 GB, free: 15.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.461, allocations: 169.5 kB / 0.4893 GB, free: 15.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.587e-05/0.4611, allocations: 106.3 kB / 0.4894 GB, free: 15.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.4611, allocations: 14.69 kB / 0.4895 GB, free: 15.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.4613, allocations: 348.1 kB / 0.4898 GB, free: 15.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/0.4616, allocations: 167.3 kB / 0.49 GB, free: 14.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003876/0.462, allocations: 174.2 kB / 0.4901 GB, free: 14.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.4624, allocations: 255.6 kB / 0.4904 GB, free: 14.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.4624, allocations: 0 / 0.4904 GB, free: 14.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009791/0.4634, allocations: 0.5695 MB / 0.4909 GB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/0.4635, allocations: 118.2 kB / 0.491 GB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4635, allocations: 4 kB / 0.491 GB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4636, allocations: 0 / 0.491 GB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.4638, allocations: 55.02 kB / 0.4911 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4638, allocations: 0 / 0.4911 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/0.4641, allocations: 75.42 kB / 0.4912 GB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.4642, allocations: 22.94 kB / 0.4912 GB, free: 13.85 MB / 346.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.0002554/0.4644, allocations: 244.8 kB / 0.4914 GB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.4645, allocations: 39.61 kB / 0.4915 GB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.557e-05/0.4646, allocations: 40.23 kB / 0.4915 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.4646, allocations: 4 kB / 0.4915 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.996e-06/0.4646, allocations: 0 / 0.4915 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4647, allocations: 0 / 0.4915 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/0.4669, allocations: 1.029 MB / 0.4925 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4669, allocations: 0 / 0.4925 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.4671, allocations: 39.03 kB / 0.4925 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.4671, allocations: 4 kB / 0.4925 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.4671, allocations: 14.92 kB / 0.4926 GB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.4672, allocations: 0 / 0.4926 GB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4672, allocations: 4 kB / 0.4926 GB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.4686, allocations: 0.6583 MB / 0.4932 GB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.4688, allocations: 137.7 kB / 0.4933 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.4689, allocations: 16.56 kB / 0.4933 GB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.4694, allocations: 67.5 kB / 0.4934 GB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4697, allocations: 67.39 kB / 0.4935 GB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.257e-05/0.4698, allocations: 23.36 kB / 0.4935 GB, free: 11.76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002188/0.47, allocations: 136.8 kB / 0.4936 GB, free: 11.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.47, allocations: 0 / 0.4936 GB, free: 11.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00065/0.4707, allocations: 115.8 kB / 0.4937 GB, free: 11.54 MB / 346.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.0004099/0.4711, allocations: 170.3 kB / 0.4939 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.4727, allocations: 0.6586 MB / 0.4945 GB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4727, allocations: 0 / 0.4945 GB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008123/0.4735, allocations: 370.9 kB / 0.4949 GB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.4739, allocations: 32.5 kB / 0.4949 GB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.4758, allocations: 0.7153 MB / 0.4956 GB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006175/0.4765, allocations: 0.7998 MB / 0.4964 GB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.4767, allocations: 26.97 kB / 0.4964 GB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.4769, allocations: 27.42 kB / 0.4965 GB, free: 8.922 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4769, allocations: 0 / 0.4965 GB, free: 8.922 MB / 346.7 MB Notification: Performance of Templates: time 0.01116/0.488, allocations: 3.81 MB / 0.5002 GB, free: 5.148 MB / 346.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)