Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008447/0.0008445, allocations: 91.67 kB / 16.65 MB, free: 6.348 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.001421/0.001421, allocations: 180.9 kB / 17.57 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002576/0.0002577, allocations: 11.94 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 50.41 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003116/0.1247, allocations: 2.116 MB / 353.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1274, allocations: 1.282 MB / 355.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.1277, allocations: 7.938 kB / 355.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000711/0.1284, allocations: 211.3 kB / 355.4 MB, free: 84 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.1288, allocations: 143.5 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007979/0.1296, allocations: 259.2 kB / 355.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005081/0.1301, allocations: 455.7 kB / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.1305, allocations: 197.8 kB / 356.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.1307, allocations: 147.2 kB / 356.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1309, allocations: 175 kB / 356.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.131, allocations: 12 kB / 356.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.1312, allocations: 83.89 kB / 356.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1314, allocations: 99.61 kB / 357 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002022/0.1316, allocations: 200.5 kB / 357.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.1322, allocations: 498.2 kB / 357.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1322, allocations: 0 / 357.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1322, allocations: 4 kB / 357.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1322, allocations: 3.938 kB / 357.7 MB, free: 13.83 MB / 302.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.001315/0.1335, allocations: 0.7659 MB / 358.4 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.1336, allocations: 8.031 kB / 358.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.1337, allocations: 64.28 kB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004781/0.1342, allocations: 383.1 kB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.446e-05/0.1343, allocations: 58.64 kB / 358.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.1343, allocations: 40 kB / 359 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.135, allocations: 436.6 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.135, allocations: 3.938 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.135, allocations: 12 kB / 359.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.1351, allocations: 12.44 kB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.1355, allocations: 265.5 kB / 359.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1375, allocations: 1.698 MB / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.1381, allocations: 296 kB / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.1384, allocations: 130.5 kB / 361.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.415e-05/0.1385, allocations: 19.95 kB / 361.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004544/0.1389, allocations: 324.6 kB / 362.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.1389, allocations: 0 / 362.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009794/0.1399, allocations: 493.6 kB / 362.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.14, allocations: 174.2 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.1406, allocations: 489.3 kB / 363.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.1406, allocations: 37.7 kB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1408, allocations: 232.5 kB / 363.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.366e-05/0.1409, allocations: 83 kB / 363.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.141, allocations: 77.66 kB / 363.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1412, allocations: 362.7 kB / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.1415, allocations: 121.1 kB / 364.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.1418, allocations: 270.7 kB / 364.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005954/0.1424, allocations: 422.5 kB / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1425, allocations: 0 / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000804/0.1433, allocations: 482.3 kB / 365.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.1433, allocations: 33.7 kB / 365.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1433, allocations: 4 kB / 365.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.1434, allocations: 8.312 kB / 365.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1435, allocations: 47.84 kB / 365.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.1435, allocations: 7.938 kB / 365.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.1438, allocations: 71.88 kB / 365.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.1439, allocations: 20 kB / 365.5 MB, free: 5.469 MB / 302.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,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002975/0.1442, allocations: 244.6 kB / 365.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-05/0.1442, allocations: 47.44 kB / 365.8 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005038/0.1448, allocations: 272 kB / 366 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1448, allocations: 4 kB / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1448, allocations: 0 / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.1448, allocations: 7.938 kB / 366.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.1459, allocations: 0.779 MB / 366.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1459, allocations: 4 kB / 366.8 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.146, allocations: 19.86 kB / 366.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.146, allocations: 0 / 366.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.705e-05/0.1461, allocations: 23.98 kB / 366.9 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.1461, allocations: 0 / 366.9 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.1461, allocations: 4 kB / 366.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.1472, allocations: 0.5136 MB / 367.4 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.1474, allocations: 132.4 kB / 367.5 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.1475, allocations: 12 kB / 367.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/0.1479, allocations: 27.97 kB / 367.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.1481, allocations: 43.95 kB / 367.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.1481, allocations: 19.98 kB / 367.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006005/0.1488, allocations: 315.1 kB / 367.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1488, allocations: 0 / 367.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008665/0.1496, allocations: 124 kB / 368.1 MB, free: 2.773 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/0.1513, allocations: 455.8 kB / 368.5 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.1525, allocations: 403.1 kB / 368.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1525, allocations: 0 / 368.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006571/0.1532, allocations: 239.8 kB / 369.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008592/0.1541, allocations: 85.45 kB / 369.2 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.1565, allocations: 0.9245 MB / 370.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2307/0.3872, allocations: 0.8332 MB / 371 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.3877, allocations: 74.45 kB / 371 MB, free: 23.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3878, allocations: 40.83 kB / 371.1 MB, free: 23.93 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3879, allocations: 0 / 371.1 MB, free: 23.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01266/0.4005, allocations: 5.073 MB / 376.2 MB, free: 23.67 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches