Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 98.34 kB / 16.95 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 179.7 kB / 17.84 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005265/0.0005267, allocations: 16 kB / 280.8 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1283, allocations: 47.58 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003446/0.1318, allocations: 2.036 MB / 330.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.1345, allocations: 1.171 MB / 331.5 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/0.1349, allocations: 7.938 kB / 331.6 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009437/0.1358, allocations: 215.2 kB / 331.8 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000412/0.1362, allocations: 135.4 kB / 331.9 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006624/0.1369, allocations: 219.6 kB / 332.1 MB, free: 304 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005345/0.1375, allocations: 419.8 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.1378, allocations: 158.6 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.138, allocations: 151.3 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.1383, allocations: 163.2 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.1383, allocations: 12 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002211/0.1385, allocations: 83.94 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.1387, allocations: 95.59 kB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1388, allocations: 97.45 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.1392, allocations: 371.4 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.1392, allocations: 4 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1393, allocations: 0 / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1393, allocations: 7.938 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001545/0.1408, allocations: 0.7694 MB / 334.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.1409, allocations: 15.97 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.141, allocations: 55.34 kB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005629/0.1416, allocations: 378 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.545e-05/0.1417, allocations: 54.7 kB / 334.9 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.1417, allocations: 40 kB / 334.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.1424, allocations: 424.7 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1424, allocations: 0 / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.1425, allocations: 16 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-05/0.1425, allocations: 16.44 kB / 335.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.143, allocations: 277.3 kB / 335.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.145, allocations: 1.686 MB / 337.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.1456, allocations: 294.6 kB / 337.6 MB, free: 10.49 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1458, allocations: 134.5 kB / 337.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.548e-05/0.1459, allocations: 4 kB / 337.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005071/0.1464, allocations: 344.2 kB / 338.1 MB, free: 9.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.874e-06/0.1464, allocations: 4 kB / 338.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009286/0.1474, allocations: 485 kB / 338.6 MB, free: 9.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.46e-05/0.1475, allocations: 158.2 kB / 338.7 MB, free: 9.293 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004997/0.148, allocations: 497.2 kB / 339.2 MB, free: 8.801 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.148, allocations: 37.7 kB / 339.3 MB, free: 8.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.1482, allocations: 232.5 kB / 339.5 MB, free: 8.527 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/0.1483, allocations: 86.98 kB / 339.6 MB, free: 8.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.1483, allocations: 4 kB / 339.6 MB, free: 8.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.1485, allocations: 354.8 kB / 339.9 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.1488, allocations: 125 kB / 340 MB, free: 7.961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.1493, allocations: 266.7 kB / 340.3 MB, free: 7.641 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.1496, allocations: 169.6 kB / 340.5 MB, free: 7.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1496, allocations: 4 kB / 340.5 MB, free: 7.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007968/0.1504, allocations: 478.2 kB / 340.9 MB, free: 6.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.681e-05/0.1505, allocations: 37.69 kB / 341 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.1505, allocations: 8.094 kB / 341 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.1506, allocations: 8 kB / 341 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.1507, allocations: 43.86 kB / 341 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/0.1507, allocations: 12.44 kB / 341 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.151, allocations: 63.58 kB / 341.1 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.1511, allocations: 23.98 kB / 341.1 MB, free: 6.785 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0003217/0.1514, allocations: 252.6 kB / 341.4 MB, free: 6.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.1515, allocations: 47.48 kB / 341.4 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005392/0.152, allocations: 269.4 kB / 341.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.152, allocations: 4 kB / 341.7 MB, free: 6.191 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.152, allocations: 0 / 341.7 MB, free: 6.191 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1521, allocations: 3.984 kB / 341.7 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.1532, allocations: 0.775 MB / 342.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1532, allocations: 0 / 342.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.376e-05/0.1533, allocations: 19.92 kB / 342.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1533, allocations: 4 kB / 342.5 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.1533, allocations: 11.98 kB / 342.5 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1533, allocations: 4 kB / 342.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1533, allocations: 0 / 342.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007147/0.1541, allocations: 0.5061 MB / 343 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.1542, allocations: 132.3 kB / 343.1 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.985e-05/0.1543, allocations: 16 kB / 343.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.1545, allocations: 31.97 kB / 343.2 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1546, allocations: 43.92 kB / 343.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.1546, allocations: 16 kB / 343.3 MB, free: 4.531 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.155, allocations: 319.1 kB / 343.6 MB, free: 4.219 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.155, allocations: 4 kB / 343.6 MB, free: 4.215 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.1555, allocations: 120 kB / 343.7 MB, free: 4.098 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.001561/0.1571, allocations: 463.5 kB / 344.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00079/0.1579, allocations: 388.1 kB / 344.5 MB, free: 3.262 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1579, allocations: 0 / 344.5 MB, free: 3.262 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.1583, allocations: 251 kB / 344.8 MB, free: 3.004 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000539/0.1588, allocations: 81.72 kB / 344.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.1604, allocations: 0.8737 MB / 345.7 MB, free: 2.023 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.1609, allocations: 0.8435 MB / 346.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.1611, allocations: 75.56 kB / 346.6 MB, free: 1.078 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.1612, allocations: 43.42 kB / 346.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1612, allocations: 0 / 346.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of Templates: time 0.01173/0.173, allocations: 4.939 MB / 351.6 MB, free: 12.09 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches