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.001109/0.001109, allocations: 112.9 kB / 17.29 MB, free: 6.219 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.001071/0.001071, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.294/1.294, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.001191, allocations: 46.75 kB / 300.8 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 49.44 MB / 350.2 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.006069/0.112, allocations: 2.495 MB / 352.7 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.1153, allocations: 1.294 MB / 354 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.1157, allocations: 11.94 kB / 354 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.1168, allocations: 221.5 kB / 354.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006052/0.1174, allocations: 135.5 kB / 354.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.1185, allocations: 266.7 kB / 354.6 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008122/0.1193, allocations: 475.9 kB / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004998/0.1198, allocations: 209.8 kB / 355.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003746/0.1202, allocations: 199.2 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003998/0.1206, allocations: 211 kB / 355.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.847e-05/0.1207, allocations: 36 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.1211, allocations: 131.7 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.1213, allocations: 123.6 kB / 356 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003231/0.1216, allocations: 218.7 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007051/0.1223, allocations: 407.4 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1224, allocations: 4 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.858e-06/0.1224, allocations: 0 / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.378e-05/0.1224, allocations: 3.938 kB / 356.6 MB, free: 14.37 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.002121/0.1245, allocations: 0.8437 MB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.1246, allocations: 16.02 kB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.1248, allocations: 60.28 kB / 357.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007671/0.1256, allocations: 390.9 kB / 357.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.9e-05/0.1257, allocations: 58.64 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.1258, allocations: 40 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1268, allocations: 424.7 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.1269, allocations: 3.938 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.637e-05/0.127, allocations: 19.98 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.127, allocations: 12.44 kB / 358.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007537/0.1278, allocations: 261.5 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.1305, allocations: 1.69 MB / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008583/0.1314, allocations: 296 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.1318, allocations: 122.5 kB / 360.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.86e-05/0.1319, allocations: 20.05 kB / 360.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.1325, allocations: 328.5 kB / 361.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.446e-06/0.1326, allocations: 3.938 kB / 361.1 MB, free: 9.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001451/0.134, allocations: 474.6 kB / 361.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.1341, allocations: 170.2 kB / 361.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.1349, allocations: 493.2 kB / 362.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.135, allocations: 37.7 kB / 362.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.1353, allocations: 232.6 kB / 362.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.1354, allocations: 86.98 kB / 362.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.1357, allocations: 118.2 kB / 362.7 MB, free: 7.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1359, allocations: 362.7 kB / 363.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.1362, allocations: 117 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/0.1367, allocations: 270.7 kB / 363.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000812/0.1375, allocations: 422.7 kB / 363.9 MB, free: 6.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1375, allocations: 0 / 363.9 MB, free: 6.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001168/0.1387, allocations: 474.2 kB / 364.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.1388, allocations: 44.66 kB / 364.4 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1388, allocations: 7.938 kB / 364.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.1388, allocations: 8 kB / 364.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.139, allocations: 44.33 kB / 364.4 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-05/0.1391, allocations: 15.92 kB / 364.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.1395, allocations: 47.61 kB / 364.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.406e-05/0.1395, allocations: 24 kB / 364.5 MB, free: 5.918 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.0003768/0.1399, allocations: 248.6 kB / 364.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.14, allocations: 51.44 kB / 364.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007129/0.1408, allocations: 261.3 kB / 365.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.1408, allocations: 4 kB / 365.1 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.1408, allocations: 4 kB / 365.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.1408, allocations: 7.922 kB / 365.1 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.1424, allocations: 0.7864 MB / 365.9 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.1424, allocations: 0 / 365.9 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.808e-05/0.1425, allocations: 23.88 kB / 365.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1425, allocations: 0 / 365.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.1426, allocations: 15.98 kB / 365.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1426, allocations: 0 / 365.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1426, allocations: 0 / 365.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1437, allocations: 0.517 MB / 366.4 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.1438, allocations: 128.4 kB / 366.6 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/0.1439, allocations: 12 kB / 366.6 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.1442, allocations: 23.97 kB / 366.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.1444, allocations: 35.95 kB / 366.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.1445, allocations: 16 kB / 366.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004924/0.145, allocations: 331.1 kB / 367 MB, free: 3.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.145, allocations: 0 / 367 MB, free: 3.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004793/0.1455, allocations: 111.7 kB / 367.1 MB, free: 3.246 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.001078/0.1465, allocations: 466.4 kB / 367.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.1476, allocations: 422.8 kB / 367.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.1477, allocations: 4 kB / 367.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005023/0.1482, allocations: 239.2 kB / 368.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/0.149, allocations: 98.44 kB / 368.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1508, allocations: 0.9544 MB / 369.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.1513, allocations: 0.8361 MB / 370.1 MB, free: 324 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.1514, allocations: 47.42 kB / 370.1 MB, free: 276 kB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1514, allocations: 0 / 370.1 MB, free: 276 kB / 302.1 MB Notification: Performance of Templates: time 0.1685/0.32, allocations: 6.297 MB / 376.4 MB, free: 24.38 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/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