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.001166/0.001166, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001119/0.001119, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9259/0.9259, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",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.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.382e-05/2.565e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003221/0.003247, allocations: 2.48 MB / 270.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.005027, allocations: 1.316 MB / 271.8 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.005205, allocations: 15.88 kB / 271.8 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006785/0.005884, allocations: 250.9 kB / 272 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.006213, allocations: 171 kB / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.006763, allocations: 307.1 kB / 272.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.007193, allocations: 479.6 kB / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.007405, allocations: 142 kB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.007655, allocations: 271.4 kB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.007825, allocations: 175.4 kB / 273.6 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.637e-05/0.007872, allocations: 36 kB / 273.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.00811, allocations: 135.8 kB / 273.7 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.008213, allocations: 131.6 kB / 273.9 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.008321, allocations: 135.5 kB / 274 MB, free: 404 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004933/0.008814, allocations: 454.2 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.008816, allocations: 0 / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.008817, allocations: 0 / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.008825, allocations: 0 / 274.4 MB, free: 15.95 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.000963/0.009788, allocations: 0.8714 MB / 275.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.009823, allocations: 8.922 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.009934, allocations: 92.56 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.01028, allocations: 339.3 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.01034, allocations: 92.7 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.01038, allocations: 43.98 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005512/0.01093, allocations: 401.9 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.01095, allocations: 0 / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.01097, allocations: 12 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/0.01099, allocations: 16.48 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.01122, allocations: 191.7 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.01254, allocations: 1.949 MB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.01289, allocations: 267.1 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.013, allocations: 116.7 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.041e-05/0.01305, allocations: 11.94 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.01337, allocations: 339.6 kB / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.833e-06/0.01337, allocations: 0 / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005708/0.01394, allocations: 457 kB / 279.6 MB, free: 10.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002804/0.01422, allocations: 140.5 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.01454, allocations: 474.4 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.01457, allocations: 37.7 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.01472, allocations: 283.7 kB / 280.5 MB, free: 9.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.239e-05/0.01478, allocations: 95.25 kB / 280.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.01489, allocations: 127.8 kB / 280.7 MB, free: 9.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.01505, allocations: 0.5274 MB / 281.2 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.01517, allocations: 98.66 kB / 281.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.01538, allocations: 314.3 kB / 281.6 MB, free: 8.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.01569, allocations: 377.5 kB / 282 MB, free: 7.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.0157, allocations: 8 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004673/0.01617, allocations: 440.8 kB / 282.5 MB, free: 7.266 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.0162, allocations: 40.98 kB / 282.5 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.01621, allocations: 7.984 kB / 282.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.01623, allocations: 12 kB / 282.5 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.36e-05/0.01632, allocations: 39.86 kB / 282.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.01633, allocations: 11.94 kB / 282.6 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.01646, allocations: 47.77 kB / 282.6 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.01649, allocations: 23.98 kB / 282.6 MB, free: 7.082 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.0001991/0.01669, allocations: 259.2 kB / 282.9 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.01675, allocations: 59.72 kB / 282.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004263/0.01718, allocations: 373.4 kB / 283.3 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.01718, allocations: 4 kB / 283.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.01719, allocations: 0 / 283.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.01719, allocations: 3.984 kB / 283.3 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006758/0.01787, allocations: 0.6558 MB / 284 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.01787, allocations: 7.938 kB / 284 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.01792, allocations: 11.98 kB / 284 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.01792, allocations: 4 kB / 284 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.01794, allocations: 15.98 kB / 284 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.01794, allocations: 4 kB / 284 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.01795, allocations: 3.938 kB / 284 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004273/0.01837, allocations: 0.5561 MB / 284.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.01841, allocations: 43.66 kB / 284.6 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.01846, allocations: 15.98 kB / 284.6 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.01857, allocations: 19.98 kB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.76e-05/0.01866, allocations: 43.73 kB / 284.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.01869, allocations: 19.98 kB / 284.7 MB, free: 4.883 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001839/0.01887, allocations: 283 kB / 285 MB, free: 4.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01887, allocations: 4 kB / 285 MB, free: 4.605 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003478/0.01922, allocations: 123.7 kB / 285.1 MB, free: 4.484 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.001012/0.02023, allocations: 443.2 kB / 285.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000402/0.02063, allocations: 363.2 kB / 285.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.02064, allocations: 0.9375 kB / 285.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.0208, allocations: 216.5 kB / 286.1 MB, free: 3.566 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.02114, allocations: 103.9 kB / 286.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008872/0.02203, allocations: 0.7514 MB / 287 MB, free: 2.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.495e-05/0.0221, allocations: 114.3 kB / 287.1 MB, free: 2.547 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.02223, allocations: 75.45 kB / 287.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.782e-05/0.0223, allocations: 44.48 kB / 287.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.0223, allocations: 0 / 287.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of Templates: time 0.1015/0.1238, allocations: 6.094 MB / 293.3 MB, free: 28.91 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0769864008761942]