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.001494/0.001494, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002199/0.002199, allocations: 211.4 kB / 24.48 MB, free: 3.977 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 2.085/2.085, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.002134/0.002134, allocations: 43.94 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3523, allocations: 53.37 MB / 432.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00596/0.3583, allocations: 2.398 MB / 434.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004122/0.3624, allocations: 1.426 MB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000487/0.3629, allocations: 11.88 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.364, allocations: 250.9 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007623/0.3647, allocations: 207 kB / 436.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009754/0.3657, allocations: 267.4 kB / 436.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008182/0.3665, allocations: 487.6 kB / 437.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004297/0.367, allocations: 146.1 kB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.3673, allocations: 203.2 kB / 437.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.3677, allocations: 223 kB / 437.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.748e-05/0.3678, allocations: 32 kB / 437.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.3682, allocations: 127.9 kB / 438.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.3684, allocations: 127.5 kB / 438.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.3687, allocations: 174.9 kB / 438.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.3697, allocations: 0.5706 MB / 438.9 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3697, allocations: 7.922 kB / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3697, allocations: 0 / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3697, allocations: 0 / 438.9 MB, free: 52 kB / 334.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.002107/0.3718, allocations: 0.7874 MB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.3719, allocations: 12.03 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004639/0.3723, allocations: 68.55 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000823/0.3731, allocations: 340.4 kB / 440.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.3733, allocations: 84.97 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.593e-05/0.3734, allocations: 39.94 kB / 440.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.3745, allocations: 453.5 kB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3745, allocations: 0 / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.522e-05/0.3745, allocations: 19.98 kB / 440.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.3746, allocations: 12.44 kB / 440.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008189/0.3754, allocations: 299.2 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.3784, allocations: 1.508 MB / 442.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009902/0.3794, allocations: 305.6 kB / 442.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.3798, allocations: 144.2 kB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.574e-05/0.3799, allocations: 4 kB / 443 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/0.3807, allocations: 363.8 kB / 443.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 3.656e-06/0.3807, allocations: 0 / 443.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001646/0.3823, allocations: 0.5274 MB / 443.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3824, allocations: 140.5 kB / 444 MB, free: 10.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009148/0.3834, allocations: 0.4974 MB / 444.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/0.3834, allocations: 41.69 kB / 444.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.3837, allocations: 236.9 kB / 444.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3839, allocations: 91.36 kB / 444.9 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/0.3841, allocations: 114.2 kB / 445 MB, free: 9.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000236/0.3844, allocations: 358.7 kB / 445.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.3848, allocations: 150.6 kB / 445.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.3854, allocations: 312.6 kB / 445.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008627/0.3862, allocations: 407.1 kB / 446.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.3862, allocations: 7.984 kB / 446.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001312/0.3875, allocations: 0.4926 MB / 446.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.509e-05/0.3876, allocations: 41.8 kB / 446.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.3876, allocations: 4 kB / 446.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.3876, allocations: 4 kB / 446.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.3879, allocations: 47.84 kB / 446.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/0.3879, allocations: 8 kB / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.3883, allocations: 51.66 kB / 446.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-05/0.3884, allocations: 20 kB / 446.8 MB, free: 7.594 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.0004563/0.3888, allocations: 260.5 kB / 447.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.389, allocations: 43.72 kB / 447.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.3901, allocations: 418 kB / 447.6 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.3901, allocations: 4 kB / 447.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3901, allocations: 0 / 447.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.3902, allocations: 3.984 kB / 447.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.3917, allocations: 0.6269 MB / 448.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3917, allocations: 4 kB / 448.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.3919, allocations: 19.92 kB / 448.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3919, allocations: 0 / 448.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.3919, allocations: 11.94 kB / 448.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.3919, allocations: 4 kB / 448.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.3919, allocations: 0 / 448.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3931, allocations: 0.534 MB / 448.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.3932, allocations: 55.58 kB / 448.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3933, allocations: 12 kB / 448.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.3937, allocations: 27.97 kB / 448.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.3939, allocations: 47.92 kB / 448.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.3939, allocations: 15.98 kB / 448.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.3945, allocations: 327.1 kB / 449.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3945, allocations: 0 / 449.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008702/0.3954, allocations: 111.9 kB / 449.3 MB, free: 4.992 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,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.0024/0.3978, allocations: 484.7 kB / 449.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.3989, allocations: 430.4 kB / 450.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3989, allocations: 0 / 450.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.3994, allocations: 236.9 kB / 450.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.4003, allocations: 93.45 kB / 450.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.4024, allocations: 0.8288 MB / 451.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.4028, allocations: 234.8 kB / 451.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003043/0.4031, allocations: 75.2 kB / 451.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.4032, allocations: 43.42 kB / 451.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4032, allocations: 0 / 451.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of Templates: time 0.01772/0.4209, allocations: 5.745 MB / 457.5 MB, free: 13 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 -s cvode -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: 7.025733928006957]