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.001012/0.001012, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.0009588/0.0009589, allocations: 191 kB / 18.63 MB, free: 4.508 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.348/1.348, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 50.73 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09855, allocations: 49.44 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005173/0.1038, allocations: 2.452 MB / 353.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.1067, allocations: 1.321 MB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002462/0.107, allocations: 11.94 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009746/0.108, allocations: 238.9 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005474/0.1086, allocations: 163.2 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1096, allocations: 298.3 kB / 356 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000657/0.1103, allocations: 471.8 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.1108, allocations: 205.8 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.111, allocations: 195.2 kB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002897/0.1113, allocations: 211.1 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.413e-05/0.1114, allocations: 39.98 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.1117, allocations: 115.9 kB / 357.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.1119, allocations: 127.6 kB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.1122, allocations: 226.6 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007614/0.113, allocations: 0.541 MB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.113, allocations: 3.984 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.113, allocations: 0 / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.113, allocations: 4 kB / 358.1 MB, free: 13.09 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.001693/0.1147, allocations: 0.8475 MB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1148, allocations: 15.89 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.1149, allocations: 56.28 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007009/0.1156, allocations: 402.9 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.517e-05/0.1157, allocations: 66.64 kB / 359.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.1158, allocations: 32 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008642/0.1167, allocations: 436.7 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1167, allocations: 0 / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.1168, allocations: 16 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.053e-05/0.1168, allocations: 16.38 kB / 359.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000667/0.1175, allocations: 265.5 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.12, allocations: 1.682 MB / 361.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007624/0.1207, allocations: 296 kB / 362.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.1211, allocations: 130.5 kB / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.187e-05/0.1212, allocations: 8 kB / 362.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006011/0.1218, allocations: 332.4 kB / 362.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.485e-06/0.1218, allocations: 0 / 362.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001315/0.1231, allocations: 481.8 kB / 363.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.1232, allocations: 166.2 kB / 363.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007175/0.124, allocations: 497.2 kB / 363.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.124, allocations: 45.64 kB / 363.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.1243, allocations: 232.5 kB / 364 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.654e-05/0.1244, allocations: 79 kB / 364.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.1246, allocations: 118.2 kB / 364.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1248, allocations: 362.7 kB / 364.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.1251, allocations: 117.1 kB / 364.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/0.1256, allocations: 270.6 kB / 364.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007456/0.1263, allocations: 426.8 kB / 365.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.1263, allocations: 4 kB / 365.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001063/0.1274, allocations: 474.2 kB / 365.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.36e-05/0.1275, allocations: 42.17 kB / 365.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1275, allocations: 8 kB / 365.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.1275, allocations: 4 kB / 365.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.1277, allocations: 43.84 kB / 365.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.1278, allocations: 8 kB / 365.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.1281, allocations: 55.55 kB / 366 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.1282, allocations: 23.98 kB / 366 MB, free: 4.621 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.000336/0.1285, allocations: 252.9 kB / 366.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.1286, allocations: 47.44 kB / 366.3 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006628/0.1293, allocations: 261.2 kB / 366.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.1293, allocations: 8 kB / 366.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1294, allocations: 3.938 kB / 366.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.1294, allocations: 3.938 kB / 366.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.1308, allocations: 0.777 MB / 367.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1308, allocations: 0 / 367.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.818e-05/0.1309, allocations: 19.98 kB / 367.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.1309, allocations: 3.938 kB / 367.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/0.131, allocations: 15.94 kB / 367.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.131, allocations: 3.938 kB / 367.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.131, allocations: 3.984 kB / 367.4 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.132, allocations: 0.5094 MB / 367.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1322, allocations: 116.5 kB / 368 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.6e-05/0.1323, allocations: 23.92 kB / 368 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.1326, allocations: 23.98 kB / 368.1 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.1327, allocations: 39.94 kB / 368.1 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.1328, allocations: 19.98 kB / 368.1 MB, free: 2.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004767/0.1333, allocations: 331.1 kB / 368.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1333, allocations: 0 / 368.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007123/0.134, allocations: 111.7 kB / 368.6 MB, free: 1.945 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.001442/0.1355, allocations: 464.3 kB / 369 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009351/0.1364, allocations: 391.1 kB / 369.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1365, allocations: 0 / 369.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.1369, allocations: 242.9 kB / 369.6 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.1377, allocations: 94.75 kB / 369.7 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.1393, allocations: 0.7885 MB / 370.5 MB, free: 88 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1458/0.2852, allocations: 0.8303 MB / 371.3 MB, free: 24.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000362/0.2856, allocations: 74.22 kB / 371.4 MB, free: 24.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.2857, allocations: 47.09 kB / 371.5 MB, free: 24.78 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2857, allocations: 1.219 kB / 371.5 MB, free: 24.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01296/0.2987, allocations: 5.457 MB / 376.9 MB, free: 24.55 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 gbode -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