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.001251/0.001251, allocations: 114.6 kB / 17.69 MB, free: 5.309 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.001029/0.001029, allocations: 191 kB / 18.63 MB, free: 4.375 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.407/1.407, allocations: 222.9 MB / 242.3 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 39.41 kB / 302 MB, free: 5.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1044, allocations: 49.44 MB / 351.5 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004429/0.1088, allocations: 2.45 MB / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.1111, allocations: 1.325 MB / 355.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.1114, allocations: 11.94 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008136/0.1122, allocations: 234.5 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004381/0.1127, allocations: 159.2 kB / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008265/0.1135, allocations: 299.2 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.114, allocations: 483.7 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003515/0.1144, allocations: 205.8 kB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.1146, allocations: 191.2 kB / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.1149, allocations: 207 kB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.849e-05/0.1149, allocations: 36 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.1152, allocations: 127.9 kB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.1153, allocations: 123.6 kB / 357.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.1156, allocations: 218.7 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.1162, allocations: 0.5527 MB / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1162, allocations: 4 kB / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1162, allocations: 0 / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1162, allocations: 0 / 358.1 MB, free: 13.16 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.001349/0.1176, allocations: 0.8591 MB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1176, allocations: 8.031 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1177, allocations: 64.2 kB / 359 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.1183, allocations: 387 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.568e-05/0.1184, allocations: 70.61 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.1184, allocations: 40 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.1191, allocations: 420.7 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1191, allocations: 3.938 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.1192, allocations: 23.98 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.1192, allocations: 12.44 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.1197, allocations: 261.5 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.1216, allocations: 1.678 MB / 361.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005685/0.1222, allocations: 299.9 kB / 362.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.1224, allocations: 122.5 kB / 362.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.978e-05/0.1225, allocations: 15.98 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004685/0.123, allocations: 328.3 kB / 362.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.123, allocations: 0 / 362.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009522/0.1239, allocations: 481.8 kB / 363.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.124, allocations: 166.2 kB / 363.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/0.1246, allocations: 489.2 kB / 363.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/0.1246, allocations: 49.62 kB / 363.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.1248, allocations: 228.6 kB / 364 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.1249, allocations: 90.92 kB / 364.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.1251, allocations: 118.2 kB / 364.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1252, allocations: 358.7 kB / 364.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.1255, allocations: 121 kB / 364.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.1258, allocations: 266.7 kB / 364.9 MB, free: 5.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.1263, allocations: 426.8 kB / 365.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.1263, allocations: 4.25 kB / 365.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007176/0.127, allocations: 482.2 kB / 365.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.1271, allocations: 37.69 kB / 365.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1271, allocations: 4 kB / 365.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1271, allocations: 4.469 kB / 365.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.1273, allocations: 43.86 kB / 365.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.1273, allocations: 15.98 kB / 365.9 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.1275, allocations: 59.48 kB / 366 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.1276, allocations: 16 kB / 366 MB, free: 4.691 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.0002578/0.1278, allocations: 256.5 kB / 366.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/0.1279, allocations: 51.44 kB / 366.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/0.1284, allocations: 257.2 kB / 366.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1284, allocations: 7.938 kB / 366.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1284, allocations: 64 / 366.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-05/0.1285, allocations: 11.92 kB / 366.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.1295, allocations: 0.7712 MB / 367.3 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1295, allocations: 0 / 367.3 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.932e-05/0.1296, allocations: 27.92 kB / 367.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1296, allocations: 3.938 kB / 367.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/0.1297, allocations: 15.98 kB / 367.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1297, allocations: 0 / 367.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1297, allocations: 0 / 367.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007312/0.1304, allocations: 0.5093 MB / 367.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.1305, allocations: 128.5 kB / 368 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.1306, allocations: 15.94 kB / 368 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.1308, allocations: 23.97 kB / 368.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1309, allocations: 35.95 kB / 368.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.131, allocations: 20 kB / 368.1 MB, free: 2.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003529/0.1313, allocations: 323.1 kB / 368.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1313, allocations: 0 / 368.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.1318, allocations: 107.8 kB / 368.5 MB, free: 2.027 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.001081/0.1329, allocations: 477.5 kB / 369 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006883/0.1336, allocations: 391.8 kB / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1336, allocations: 0 / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.134, allocations: 247 kB / 369.6 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.1345, allocations: 89.11 kB / 369.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.1358, allocations: 0.7927 MB / 370.5 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1696/0.3055, allocations: 0.828 MB / 371.3 MB, free: 24.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.3058, allocations: 72.06 kB / 371.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.306, allocations: 46.48 kB / 371.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.306, allocations: 0 / 371.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01242/0.3184, allocations: 5.478 MB / 376.9 MB, free: 24.64 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/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