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.001363/0.001363, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001438/0.001438, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2334, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004215/0.2376, allocations: 2.456 MB / 403.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002429/0.2401, allocations: 1.325 MB / 405.2 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/0.2405, allocations: 15.94 kB / 405.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008803/0.2414, allocations: 229.7 kB / 405.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.2419, allocations: 159.2 kB / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008499/0.2428, allocations: 301.5 kB / 405.9 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006425/0.2434, allocations: 475.8 kB / 406.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.2438, allocations: 209.8 kB / 406.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.2441, allocations: 195.2 kB / 406.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.2444, allocations: 207 kB / 406.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.864e-05/0.2445, allocations: 36 kB / 407 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.2448, allocations: 119.9 kB / 407.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.245, allocations: 131.5 kB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.2452, allocations: 222.7 kB / 407.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006704/0.2459, allocations: 0.5538 MB / 408 MB, free: 2.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2459, allocations: 4 kB / 408 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2459, allocations: 0 / 408 MB, free: 2.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.2459, allocations: 0 / 408 MB, free: 2.277 MB / 318.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.001289/0.2472, allocations: 0.8553 MB / 408.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2472, allocations: 8.031 kB / 408.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.2474, allocations: 56.28 kB / 408.9 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004885/0.2479, allocations: 402.8 kB / 409.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.2479, allocations: 54.7 kB / 409.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.248, allocations: 43.98 kB / 409.4 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/0.2486, allocations: 424.7 kB / 409.8 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2487, allocations: 7.984 kB / 409.8 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.2487, allocations: 16 kB / 409.8 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.2487, allocations: 16.38 kB / 409.9 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.2492, allocations: 265.5 kB / 410.1 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.2512, allocations: 1.67 MB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005882/0.2518, allocations: 295.9 kB / 412.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.252, allocations: 130.5 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.854e-05/0.2521, allocations: 15.91 kB / 412.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.2526, allocations: 329 kB / 412.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.584e-06/0.2526, allocations: 0 / 412.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009837/0.2536, allocations: 492 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.2537, allocations: 162.2 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.2542, allocations: 497.2 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.2543, allocations: 37.7 kB / 413.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.2545, allocations: 232.5 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.823e-05/0.2546, allocations: 90.92 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.2547, allocations: 114.1 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2549, allocations: 358.8 kB / 414.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002483/0.2551, allocations: 121 kB / 414.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.2555, allocations: 270.7 kB / 414.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.256, allocations: 422.5 kB / 415.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.256, allocations: 0 / 415.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007979/0.2569, allocations: 474.5 kB / 415.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.2569, allocations: 33.7 kB / 415.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2569, allocations: 4 kB / 415.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.2569, allocations: 8 kB / 415.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2571, allocations: 43.84 kB / 415.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.2571, allocations: 8 kB / 415.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.2574, allocations: 59.5 kB / 415.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.751e-05/0.2575, allocations: 24.28 kB / 415.9 MB, free: 9.812 MB / 334.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.0002804/0.2578, allocations: 252.5 kB / 416.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.348e-05/0.2578, allocations: 47.52 kB / 416.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000497/0.2583, allocations: 269.4 kB / 416.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.2584, allocations: 4 kB / 416.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2584, allocations: 4 kB / 416.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.2584, allocations: 7.938 kB / 416.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.2595, allocations: 0.7715 MB / 417.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2595, allocations: 3.938 kB / 417.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.585e-05/0.2596, allocations: 15.92 kB / 417.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.2596, allocations: 7.938 kB / 417.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.2596, allocations: 11.98 kB / 417.3 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.2596, allocations: 4 kB / 417.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2596, allocations: 4 kB / 417.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/0.2604, allocations: 0.5055 MB / 417.8 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.2605, allocations: 124.4 kB / 417.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.64e-05/0.2606, allocations: 11.98 kB / 417.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.2608, allocations: 27.98 kB / 418 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.2609, allocations: 39.95 kB / 418 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/0.261, allocations: 15.98 kB / 418 MB, free: 7.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003502/0.2613, allocations: 319.1 kB / 418.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2613, allocations: 4 kB / 418.3 MB, free: 7.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.2618, allocations: 123.9 kB / 418.5 MB, free: 7.141 MB / 334.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.001037/0.2629, allocations: 464.8 kB / 418.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007193/0.2636, allocations: 404.5 kB / 419.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.2636, allocations: 0.9375 kB / 419.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.264, allocations: 239.2 kB / 419.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005685/0.2646, allocations: 98.72 kB / 419.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.266, allocations: 0.8127 MB / 420.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.2664, allocations: 0.8439 MB / 421.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.2666, allocations: 47.42 kB / 421.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.2666, allocations: 0 / 421.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Templates: time 0.01052/0.2771, allocations: 6.418 MB / 427.8 MB, free: 13.91 MB / 350.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