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.001442/0.001442, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001309/0.001309, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.418/1.418, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001028, allocations: 49.97 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1037, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004405/0.1082, allocations: 2.453 MB / 353.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1107, allocations: 1.309 MB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003234/0.111, allocations: 7.938 kB / 354.5 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008918/0.112, allocations: 253.3 kB / 354.7 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.1125, allocations: 155.2 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009149/0.1134, allocations: 306.8 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007116/0.1141, allocations: 463.8 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.1146, allocations: 217.8 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.1149, allocations: 191.2 kB / 356 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.1152, allocations: 211 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.1153, allocations: 36 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002999/0.1156, allocations: 123.9 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.1158, allocations: 131.5 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.116, allocations: 210.8 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006956/0.1167, allocations: 0.5336 MB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1167, allocations: 0 / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1167, allocations: 0 / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1167, allocations: 4 kB / 357.3 MB, free: 13.82 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.001367/0.1181, allocations: 0.8475 MB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1182, allocations: 8.031 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.1183, allocations: 60.28 kB / 358.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.1188, allocations: 387 kB / 358.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.031e-05/0.1188, allocations: 58.64 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.1189, allocations: 47.98 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006626/0.1196, allocations: 432.6 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1196, allocations: 8 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.1196, allocations: 16 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.1197, allocations: 16.38 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.1202, allocations: 261.5 kB / 359.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.1221, allocations: 1.67 MB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.1227, allocations: 311.9 kB / 361.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.1229, allocations: 126.5 kB / 361.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.123, allocations: 16 kB / 361.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.1235, allocations: 320.5 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/0.1235, allocations: 0 / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001014/0.1245, allocations: 493.6 kB / 362.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.1246, allocations: 162.2 kB / 362.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000549/0.1252, allocations: 493.2 kB / 362.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.1252, allocations: 37.7 kB / 363 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.1254, allocations: 236.5 kB / 363.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.032e-05/0.1255, allocations: 79 kB / 363.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.1257, allocations: 122.2 kB / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1258, allocations: 366.7 kB / 363.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.1261, allocations: 117.1 kB / 363.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.1264, allocations: 270.7 kB / 364.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.127, allocations: 418.5 kB / 364.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1271, allocations: 0 / 364.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008555/0.1279, allocations: 486.3 kB / 365 MB, free: 5.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.128, allocations: 33.7 kB / 365.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.128, allocations: 4 kB / 365.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.128, allocations: 8 kB / 365.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1282, allocations: 47.84 kB / 365.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1282, allocations: 4 kB / 365.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.1285, allocations: 51.92 kB / 365.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.1285, allocations: 24.23 kB / 365.2 MB, free: 5.371 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.0003052/0.1288, allocations: 256.6 kB / 365.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/0.1289, allocations: 43.44 kB / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005224/0.1295, allocations: 261.2 kB / 365.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.1295, allocations: 8 kB / 365.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1295, allocations: 4 kB / 365.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1295, allocations: 3.938 kB / 365.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.1306, allocations: 0.7786 MB / 366.5 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1307, allocations: 0 / 366.5 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.562e-05/0.1307, allocations: 27.86 kB / 366.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1307, allocations: 4 kB / 366.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.1308, allocations: 8 kB / 366.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1308, allocations: 4 kB / 366.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1308, allocations: 0 / 366.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008941/0.1317, allocations: 0.5212 MB / 367.1 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.732e-05/0.1318, allocations: 128.4 kB / 367.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.174e-05/0.1319, allocations: 16 kB / 367.2 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.1321, allocations: 23.97 kB / 367.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1322, allocations: 35.95 kB / 367.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.1323, allocations: 19.98 kB / 367.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003638/0.1326, allocations: 323.1 kB / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1327, allocations: 0 / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000514/0.1332, allocations: 116 kB / 367.7 MB, free: 2.695 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.001077/0.1343, allocations: 470.7 kB / 368.2 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000786/0.1351, allocations: 419.4 kB / 368.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1351, allocations: 8.25 kB / 368.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003849/0.1355, allocations: 243.2 kB / 368.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005752/0.1361, allocations: 93.08 kB / 368.9 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.1375, allocations: 0.8294 MB / 369.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1547/0.2923, allocations: 0.8337 MB / 370.6 MB, free: 24.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.2925, allocations: 47.58 kB / 370.7 MB, free: 24.79 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2925, allocations: 0.5312 kB / 370.7 MB, free: 24.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01161/0.3041, allocations: 6.304 MB / 377 MB, free: 24.16 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