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.001447/0.001447, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001573/0.001573, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.478/1.478, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.753e-06/1.753e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.84e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00465/0.004679, allocations: 2.424 MB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.007835, allocations: 1.422 MB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.008073, allocations: 15.88 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009163/0.00899, allocations: 238.9 kB / 276.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.009552, allocations: 210.8 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007297/0.01028, allocations: 271.1 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006464/0.01093, allocations: 487.6 kB / 277.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.01124, allocations: 150.3 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003921/0.01163, allocations: 275.3 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.01191, allocations: 175.5 kB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.959e-05/0.01198, allocations: 36 kB / 278 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/0.01231, allocations: 123.8 kB / 278.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.01249, allocations: 127.5 kB / 278.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.0127, allocations: 135.6 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.01371, allocations: 0.576 MB / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.01372, allocations: 0 / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.01372, allocations: 0 / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.01373, allocations: 3.938 kB / 278.9 MB, free: 11.17 MB / 266.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.001735/0.01547, allocations: 0.791 MB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.01551, allocations: 12.03 kB / 279.7 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004047/0.01592, allocations: 104.5 kB / 279.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006383/0.01655, allocations: 335.7 kB / 280.2 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.01667, allocations: 88.97 kB / 280.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.208e-05/0.01673, allocations: 40.31 kB / 280.3 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008932/0.01763, allocations: 458 kB / 280.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.01764, allocations: 3.938 kB / 280.7 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/0.01769, allocations: 15.98 kB / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/0.01772, allocations: 12.5 kB / 280.8 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005984/0.01832, allocations: 303.4 kB / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.02081, allocations: 1.504 MB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007055/0.02152, allocations: 297.7 kB / 282.9 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/0.0218, allocations: 144.2 kB / 283 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.134e-05/0.02186, allocations: 11.98 kB / 283 MB, free: 6.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005964/0.02246, allocations: 354.5 kB / 283.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.854e-06/0.02246, allocations: 0 / 283.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.001217/0.02368, allocations: 0.5519 MB / 283.9 MB, free: 5.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.0238, allocations: 136.5 kB / 284.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006923/0.02449, allocations: 0.4974 MB / 284.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.161e-05/0.02454, allocations: 37.7 kB / 284.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.02479, allocations: 236.9 kB / 284.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.0249, allocations: 87.36 kB / 284.9 MB, free: 4.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.02508, allocations: 118.2 kB / 285 MB, free: 4.719 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002368/0.02532, allocations: 358.8 kB / 285.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.02561, allocations: 142.9 kB / 285.5 MB, free: 4.215 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.02608, allocations: 324.6 kB / 285.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000658/0.02674, allocations: 409.5 kB / 286.2 MB, free: 3.359 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.02674, allocations: 0 / 286.2 MB, free: 3.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009518/0.02769, allocations: 0.5241 MB / 286.7 MB, free: 2.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.931e-05/0.02774, allocations: 33.7 kB / 286.8 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.02775, allocations: 4 kB / 286.8 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.02778, allocations: 4 kB / 286.8 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.02794, allocations: 48.31 kB / 286.8 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.02796, allocations: 12 kB / 286.8 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.02822, allocations: 51.66 kB / 286.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.02827, allocations: 20 kB / 286.9 MB, free: 2.641 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.0003231/0.02859, allocations: 248.6 kB / 287.2 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.0287, allocations: 63.66 kB / 287.2 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000847/0.02955, allocations: 424.4 kB / 287.6 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.02956, allocations: 4 kB / 287.6 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.02957, allocations: 4 kB / 287.6 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.02958, allocations: 3.984 kB / 287.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.03072, allocations: 0.6191 MB / 288.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.03073, allocations: 8.062 kB / 288.3 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-05/0.0308, allocations: 19.86 kB / 288.3 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.03081, allocations: 4 kB / 288.3 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.03084, allocations: 8 kB / 288.3 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.03084, allocations: 4 kB / 288.3 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.03084, allocations: 4 kB / 288.3 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.03191, allocations: 0.5357 MB / 288.9 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.034e-05/0.03199, allocations: 51.53 kB / 288.9 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.03206, allocations: 12 kB / 288.9 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.03227, allocations: 23.97 kB / 288.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.03242, allocations: 39.94 kB / 289 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.03246, allocations: 19.98 kB / 289 MB, free: 464 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004237/0.03288, allocations: 323.1 kB / 289.3 MB, free: 140 kB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03288, allocations: 4 kB / 289.3 MB, free: 136 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005061/0.03339, allocations: 115.8 kB / 289.4 MB, free: 20 kB / 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: 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.00211/0.0355, allocations: 485.8 kB / 289.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008696/0.03637, allocations: 446.6 kB / 290.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.03637, allocations: 0 / 290.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004156/0.03679, allocations: 231.9 kB / 290.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006045/0.03739, allocations: 93.42 kB / 290.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.03903, allocations: 0.8356 MB / 291.5 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.03931, allocations: 235.1 kB / 291.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.03953, allocations: 79.48 kB / 291.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.03965, allocations: 40.5 kB / 291.8 MB, free: 13.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.03965, allocations: 0 / 291.8 MB, free: 13.68 MB / 282.7 MB Notification: Performance of Templates: time 0.01256/0.05221, allocations: 5.429 MB / 297.3 MB, free: 8.328 MB / 282.7 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.468169628060423]