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.001703/0.001703, allocations: 115 kB / 18.46 MB, free: 4.621 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.002133/0.002133, allocations: 207.3 kB / 21.41 MB, free: 1.668 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.549/1.549, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.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 0.001682/0.001682, allocations: 47.94 kB / 374.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1077, allocations: 53.32 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004669/0.1123, allocations: 2.495 MB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.1153, allocations: 1.492 MB / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003288/0.1156, allocations: 11.94 kB / 431.5 MB, free: 268 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008768/0.1165, allocations: 234.9 kB / 431.7 MB, free: 32 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1978/0.3143, allocations: 204 kB / 431.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008663/0.3151, allocations: 265.1 kB / 432.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008344/0.316, allocations: 478.5 kB / 432.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.3163, allocations: 152.3 kB / 432.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.3166, allocations: 206.5 kB / 433 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002693/0.3169, allocations: 224.2 kB / 433.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.71e-05/0.317, allocations: 34.69 kB / 433.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000281/0.3172, allocations: 130.5 kB / 433.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3174, allocations: 133.7 kB / 433.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.3175, allocations: 214.5 kB / 433.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006716/0.3182, allocations: 0.5712 MB / 434.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3182, allocations: 2.672 kB / 434.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3182, allocations: 0 / 434.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.3182, allocations: 1 kB / 434.3 MB, free: 7.828 MB / 350.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.001305/0.3195, allocations: 0.8684 MB / 435.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3195, allocations: 9.656 kB / 435.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.3198, allocations: 74.48 kB / 435.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.3203, allocations: 400 kB / 435.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.932e-05/0.3204, allocations: 62.64 kB / 435.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.3205, allocations: 39.91 kB / 435.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/0.3211, allocations: 430.3 kB / 436.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3211, allocations: 4.719 kB / 436.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.3211, allocations: 15.61 kB / 436.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.3212, allocations: 13.81 kB / 436.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.3217, allocations: 263.3 kB / 436.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.3234, allocations: 1.675 MB / 438.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.3239, allocations: 267.6 kB / 438.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.3242, allocations: 112.9 kB / 438.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.3242, allocations: 14.22 kB / 438.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.3246, allocations: 326.8 kB / 438.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.375e-06/0.3246, allocations: 1.453 kB / 438.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009264/0.3256, allocations: 474.9 kB / 439.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3256, allocations: 170.6 kB / 439.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.3262, allocations: 0.4912 MB / 439.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.3262, allocations: 39.94 kB / 440 MB, free: 4.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.3263, allocations: 236.3 kB / 440.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.3264, allocations: 90.61 kB / 440.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3265, allocations: 118.8 kB / 440.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.3266, allocations: 361.9 kB / 440.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.3269, allocations: 115.7 kB / 440.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.3272, allocations: 267.5 kB / 441.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.3276, allocations: 402.6 kB / 441.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3276, allocations: 1.125 kB / 441.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007233/0.3283, allocations: 465.9 kB / 442 MB, free: 3.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.3284, allocations: 36.98 kB / 442 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3284, allocations: 5.094 kB / 442 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.714e-05/0.3284, allocations: 9.938 kB / 442 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3285, allocations: 43.53 kB / 442.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.3286, allocations: 8.406 kB / 442.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.3288, allocations: 52.89 kB / 442.1 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.3289, allocations: 20.69 kB / 442.2 MB, free: 3.391 MB / 350.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.0002427/0.3291, allocations: 257.8 kB / 442.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/0.3292, allocations: 51.05 kB / 442.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004349/0.3296, allocations: 233.8 kB / 442.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3296, allocations: 3.469 kB / 442.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3296, allocations: 1.891 kB / 442.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.3296, allocations: 6.781 kB / 442.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.3307, allocations: 0.7452 MB / 443.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3307, allocations: 2.625 kB / 443.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.736e-05/0.3308, allocations: 14.27 kB / 443.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3308, allocations: 2.438 kB / 443.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.3308, allocations: 15.77 kB / 443.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3308, allocations: 1.922 kB / 443.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3308, allocations: 1.125 kB / 443.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.3315, allocations: 0.4902 MB / 444 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.3316, allocations: 122.5 kB / 444.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/0.3316, allocations: 15 kB / 444.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.3319, allocations: 25.61 kB / 444.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.332, allocations: 47.84 kB / 444.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.332, allocations: 13.05 kB / 444.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003811/0.3324, allocations: 335.4 kB / 444.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3324, allocations: 0 / 444.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005046/0.3329, allocations: 115.9 kB / 444.6 MB, free: 1.977 MB / 350.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,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 (34): * Single equations (assignments): 28 * 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.001615/0.3345, allocations: 446.4 kB / 445.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006687/0.3352, allocations: 365.4 kB / 445.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3352, allocations: 1.375 kB / 445.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.3355, allocations: 202.6 kB / 445.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.3361, allocations: 92.81 kB / 445.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.3374, allocations: 0.8403 MB / 446.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.3378, allocations: 0.8411 MB / 447.4 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.3379, allocations: 43.12 kB / 447.4 MB, free: 336 kB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3379, allocations: 5.531 kB / 447.5 MB, free: 332 kB / 350.1 MB Notification: Performance of Templates: time 0.0113/0.3492, allocations: 6.165 MB / 453.6 MB, free: 14.95 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/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: 8.525256182008889]