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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002516/0.002516, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002615/0.002615, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] 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=5051,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=5051,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.175e-05/3.376e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00503/0.005064, allocations: 2.441 MB / 269.8 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002635/0.007698, allocations: 1.309 MB / 271.1 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.007872, allocations: 11.94 kB / 271.1 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007912/0.008663, allocations: 258.8 kB / 271.3 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004198/0.009083, allocations: 163.1 kB / 271.5 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.009794, allocations: 303.1 kB / 271.8 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005991/0.01039, allocations: 487.5 kB / 272.3 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.01069, allocations: 138.3 kB / 272.4 MB, free: 1.629 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.01106, allocations: 271.3 kB / 272.7 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.01132, allocations: 171.5 kB / 272.8 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.568e-05/0.0114, allocations: 36 kB / 272.9 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.01168, allocations: 135.8 kB / 273 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.01185, allocations: 127.5 kB / 273.1 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.01203, allocations: 131.6 kB / 273.2 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007944/0.01282, allocations: 0.5799 MB / 273.8 MB, free: 196 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.01282, allocations: 0 / 273.8 MB, free: 196 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01283, allocations: 4 kB / 273.8 MB, free: 192 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.01283, allocations: 0 / 273.8 MB, free: 192 kB / 250.7 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.001764/0.0146, allocations: 0.9062 MB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.01463, allocations: 12.92 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.01481, allocations: 92.56 kB / 274.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.0154, allocations: 330.6 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.01551, allocations: 88.72 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.165e-05/0.01558, allocations: 40 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007606/0.01634, allocations: 458 kB / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.01635, allocations: 0 / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.0164, allocations: 19.94 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.01642, allocations: 12.5 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.01694, allocations: 243.5 kB / 276 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.01936, allocations: 2.024 MB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.02001, allocations: 307.1 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.02027, allocations: 140.7 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.02033, allocations: 15.94 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000576/0.02091, allocations: 376.4 kB / 278.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.02091, allocations: 0 / 278.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.001112/0.02202, allocations: 0.5172 MB / 279.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.02213, allocations: 140.5 kB / 279.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.02281, allocations: 0.5493 MB / 280.1 MB, free: 9.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.02286, allocations: 45.69 kB / 280.1 MB, free: 9.492 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.02312, allocations: 291.7 kB / 280.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.02324, allocations: 95.36 kB / 280.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.02347, allocations: 159.8 kB / 280.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003427/0.02381, allocations: 0.5547 MB / 281.2 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.02407, allocations: 134.6 kB / 281.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006716/0.02475, allocations: 354.3 kB / 281.7 MB, free: 7.805 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006668/0.02541, allocations: 446.1 kB / 282.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.02542, allocations: 4 kB / 282.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000888/0.0263, allocations: 0.4927 MB / 282.6 MB, free: 6.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/0.02635, allocations: 36.52 kB / 282.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.02636, allocations: 8 kB / 282.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.326e-05/0.0264, allocations: 11.98 kB / 282.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.02655, allocations: 43.86 kB / 282.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.02657, allocations: 8 kB / 282.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.02678, allocations: 47.7 kB / 282.8 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-05/0.02684, allocations: 28.33 kB / 282.8 MB, free: 6.582 MB / 266.7 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.0002832/0.02712, allocations: 267.3 kB / 283 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.02723, allocations: 59.72 kB / 283.1 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000852/0.02808, allocations: 428.5 kB / 283.5 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.02809, allocations: 4 kB / 283.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.02809, allocations: 0 / 283.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.0281, allocations: 8 kB / 283.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.02935, allocations: 0.7276 MB / 284.3 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.02935, allocations: 4 kB / 284.3 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.02942, allocations: 23.92 kB / 284.3 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.02943, allocations: 4 kB / 284.3 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.02946, allocations: 11.98 kB / 284.3 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.02946, allocations: 4 kB / 284.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02947, allocations: 0 / 284.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/0.03039, allocations: 0.603 MB / 284.9 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.03047, allocations: 47.64 kB / 285 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/0.03054, allocations: 16 kB / 285 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.03072, allocations: 19.98 kB / 285 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.03085, allocations: 51.86 kB / 285 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.03089, allocations: 15.98 kB / 285.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003908/0.03128, allocations: 323.1 kB / 285.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03128, allocations: 0 / 285.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004711/0.03175, allocations: 119.7 kB / 285.5 MB, free: 3.758 MB / 266.7 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,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.003017/0.03477, allocations: 499.7 kB / 286 MB, free: 3.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007971/0.03557, allocations: 432.9 kB / 286.4 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.03557, allocations: 4.938 kB / 286.4 MB, free: 2.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003992/0.03597, allocations: 248.6 kB / 286.6 MB, free: 2.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.03655, allocations: 98.31 kB / 286.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.03796, allocations: 0.7799 MB / 287.5 MB, free: 1.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.03824, allocations: 240.7 kB / 287.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002001/0.03844, allocations: 75.64 kB / 287.8 MB, free: 1.477 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.03856, allocations: 44.5 kB / 287.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.03856, allocations: 0 / 287.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of Templates: time 0.1022/0.1408, allocations: 5.66 MB / 293.5 MB, free: 31.49 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.792299701017328]