Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 177.2 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.411e-05/2.595e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004251/0.004277, allocations: 2.421 MB / 327.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003732/0.00801, allocations: 1.427 MB / 328.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.008301, allocations: 14.31 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.009466, allocations: 251.1 kB / 329.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006303/0.0101, allocations: 207.5 kB / 329.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008608/0.01096, allocations: 270.5 kB / 329.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006957/0.01165, allocations: 486.7 kB / 330.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.012, allocations: 138.8 kB / 330.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.01239, allocations: 277.6 kB / 330.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.01265, allocations: 176.9 kB / 330.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.115e-05/0.01273, allocations: 38.14 kB / 330.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.013, allocations: 130 kB / 330.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002256/0.01322, allocations: 128.3 kB / 331 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.01341, allocations: 132.8 kB / 331.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008701/0.01428, allocations: 0.574 MB / 331.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.01428, allocations: 0 / 331.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.01429, allocations: 0 / 331.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.0143, allocations: 1.094 kB / 331.7 MB, free: 12.46 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.001636/0.01593, allocations: 0.7973 MB / 332.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.01598, allocations: 9.75 kB / 332.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003609/0.01634, allocations: 70.17 kB / 332.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.01696, allocations: 323.1 kB / 332.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.01707, allocations: 83.5 kB / 333 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.578e-05/0.01714, allocations: 46.38 kB / 333 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.01791, allocations: 451.3 kB / 333.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.01793, allocations: 9.406 kB / 333.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.01797, allocations: 20.52 kB / 333.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.018, allocations: 13.12 kB / 333.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005795/0.01857, allocations: 296.7 kB / 333.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.02067, allocations: 1.506 MB / 335.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.02135, allocations: 298 kB / 335.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.02162, allocations: 141.5 kB / 335.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.64e-05/0.02168, allocations: 5.656 kB / 335.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005616/0.02224, allocations: 369.9 kB / 336.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.02224, allocations: 0 / 336.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001203/0.02345, allocations: 0.5365 MB / 336.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.02359, allocations: 143 kB / 336.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006381/0.02422, allocations: 0.4942 MB / 337.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.02428, allocations: 39.33 kB / 337.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.02451, allocations: 239.7 kB / 337.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.02462, allocations: 86.59 kB / 337.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.02481, allocations: 115.8 kB / 337.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.02504, allocations: 355.1 kB / 338.1 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.02534, allocations: 148 kB / 338.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.02579, allocations: 315.5 kB / 338.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006877/0.02648, allocations: 420.7 kB / 338.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.02648, allocations: 1.25 kB / 338.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009262/0.02741, allocations: 0.4898 MB / 339.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.883e-05/0.02747, allocations: 41.69 kB / 339.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.02748, allocations: 4 kB / 339.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.97e-05/0.02751, allocations: 8 kB / 339.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.02767, allocations: 39.86 kB / 339.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.02769, allocations: 11.94 kB / 339.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.02797, allocations: 55.64 kB / 339.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.02801, allocations: 20.28 kB / 339.6 MB, free: 6.086 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.0003274/0.02834, allocations: 244.7 kB / 339.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.013e-05/0.02843, allocations: 51.66 kB / 339.9 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008214/0.02925, allocations: 420.6 kB / 340.3 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.02926, allocations: 4 kB / 340.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.02927, allocations: 7.984 kB / 340.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.02927, allocations: 4.125 kB / 340.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.03032, allocations: 0.63 MB / 340.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.03032, allocations: 0 / 340.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.985e-05/0.03039, allocations: 23.86 kB / 341 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.03039, allocations: 0 / 341 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.03043, allocations: 15.98 kB / 341 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.03043, allocations: 0 / 341 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.03043, allocations: 0 / 341 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008087/0.03124, allocations: 0.528 MB / 341.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.959e-05/0.03132, allocations: 47.59 kB / 341.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.149e-05/0.03139, allocations: 19.98 kB / 341.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.03162, allocations: 23.98 kB / 341.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.03175, allocations: 43.92 kB / 341.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.03179, allocations: 16 kB / 341.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003881/0.03218, allocations: 327.1 kB / 342 MB, free: 3.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03218, allocations: 0 / 342 MB, free: 3.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005085/0.03268, allocations: 115.8 kB / 342.1 MB, free: 3.477 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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (35): * Single equations (assignments): 29 * 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.001841/0.03453, allocations: 483 kB / 342.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008098/0.03534, allocations: 434.3 kB / 343 MB, free: 2.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.03534, allocations: 0.9375 kB / 343 MB, free: 2.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.03573, allocations: 228.9 kB / 343.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/0.03635, allocations: 100.4 kB / 343.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.03802, allocations: 0.8202 MB / 344.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.03831, allocations: 238.9 kB / 344.4 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002165/0.03852, allocations: 75.52 kB / 344.4 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.03865, allocations: 40.48 kB / 344.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.03865, allocations: 0 / 344.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01301/0.05166, allocations: 5.406 MB / 349.9 MB, free: 11.82 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.672048635780811]