Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001523/0.001523, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001878/0.001878, allocations: 165.4 kB / 25.33 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9377/0.9377, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.[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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.128e-05/3.265e-05, allocations: 10.19 kB / 251 MB, free: 7.512 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003532/0.003565, allocations: 2.477 MB / 253.5 MB, free: 5.02 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.005584, allocations: 1.24 MB / 254.8 MB, free: 3.77 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/0.005793, allocations: 15.88 kB / 254.8 MB, free: 3.754 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006832/0.006477, allocations: 246.8 kB / 255 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000342/0.006819, allocations: 167.1 kB / 255.2 MB, free: 3.348 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.007404, allocations: 283.2 kB / 255.5 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.007911, allocations: 475.6 kB / 255.9 MB, free: 2.602 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.008151, allocations: 150.1 kB / 256.1 MB, free: 2.453 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.008432, allocations: 271.3 kB / 256.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.00861, allocations: 175.5 kB / 256.5 MB, free: 2.016 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.008654, allocations: 32 kB / 256.5 MB, free: 1.984 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.008863, allocations: 135.8 kB / 256.7 MB, free: 1.852 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.008976, allocations: 123.6 kB / 256.8 MB, free: 1.73 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.009087, allocations: 143.5 kB / 256.9 MB, free: 1.586 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.009595, allocations: 446.2 kB / 257.4 MB, free: 1.148 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.009598, allocations: 0 / 257.4 MB, free: 1.148 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.0096, allocations: 0 / 257.4 MB, free: 1.148 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.009606, allocations: 0 / 257.4 MB, free: 1.148 MB / 234.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.0009436/0.01055, allocations: 0.8832 MB / 258.2 MB, free: 220 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.01058, allocations: 15.98 kB / 258.3 MB, free: 204 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.0107, allocations: 88.59 kB / 258.4 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.01108, allocations: 335.2 kB / 258.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.01115, allocations: 88.95 kB / 258.8 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.01119, allocations: 40.36 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.01161, allocations: 406.3 kB / 259.2 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.01162, allocations: 0 / 259.2 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.01164, allocations: 19.98 kB / 259.2 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.01167, allocations: 16.5 kB / 259.2 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.0119, allocations: 188 kB / 259.4 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.01321, allocations: 1.942 MB / 261.4 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.01357, allocations: 282.9 kB / 261.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.01367, allocations: 112.7 kB / 261.7 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.01372, allocations: 12 kB / 261.8 MB, free: 12.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.014, allocations: 339.7 kB / 262.1 MB, free: 12.08 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 1.613e-06/0.014, allocations: 0 / 262.1 MB, free: 12.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005378/0.01454, allocations: 446.9 kB / 262.5 MB, free: 11.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.0146, allocations: 140.5 kB / 262.7 MB, free: 11.45 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.01495, allocations: 466.4 kB / 263.1 MB, free: 10.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.01498, allocations: 45.69 kB / 263.2 MB, free: 10.93 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.01512, allocations: 283.6 kB / 263.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.01519, allocations: 87.36 kB / 263.5 MB, free: 10.56 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.01531, allocations: 127.8 kB / 263.7 MB, free: 10.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.01546, allocations: 0.5352 MB / 264.2 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.01558, allocations: 98.64 kB / 264.3 MB, free: 9.777 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.01577, allocations: 310.4 kB / 264.6 MB, free: 9.383 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.01608, allocations: 397.5 kB / 265 MB, free: 8.906 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.01608, allocations: 0 / 265 MB, free: 8.906 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004755/0.01656, allocations: 444.3 kB / 265.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.01659, allocations: 37.69 kB / 265.4 MB, free: 8.41 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.0166, allocations: 4 kB / 265.5 MB, free: 8.406 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.01661, allocations: 8 kB / 265.5 MB, free: 8.398 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.836e-05/0.0167, allocations: 39.92 kB / 265.5 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.01671, allocations: 15.92 kB / 265.5 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.01684, allocations: 47.72 kB / 265.6 MB, free: 8.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/0.01687, allocations: 28.22 kB / 265.6 MB, free: 8.27 MB / 250.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.0001551/0.01702, allocations: 247.3 kB / 265.8 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.01708, allocations: 63.66 kB / 265.9 MB, free: 7.949 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000416/0.0175, allocations: 377.4 kB / 266.3 MB, free: 7.562 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.0175, allocations: 4 kB / 266.3 MB, free: 7.559 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.01751, allocations: 4 kB / 266.3 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.01751, allocations: 3.984 kB / 266.3 MB, free: 7.551 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006363/0.01815, allocations: 0.6573 MB / 266.9 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01815, allocations: 0 / 266.9 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.918e-05/0.01819, allocations: 19.94 kB / 266.9 MB, free: 6.828 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.0182, allocations: 4 kB / 267 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.01821, allocations: 11.98 kB / 267 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.01822, allocations: 4 kB / 267 MB, free: 6.809 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01822, allocations: 0 / 267 MB, free: 6.809 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.01863, allocations: 0.5564 MB / 267.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.01866, allocations: 47.62 kB / 267.6 MB, free: 6.168 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.0187, allocations: 12 kB / 267.6 MB, free: 6.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.556e-05/0.0188, allocations: 19.98 kB / 267.6 MB, free: 6.137 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.391e-05/0.01888, allocations: 47.8 kB / 267.6 MB, free: 6.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.01891, allocations: 19.98 kB / 267.7 MB, free: 6.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001743/0.01908, allocations: 279.1 kB / 267.9 MB, free: 5.797 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01908, allocations: 0 / 267.9 MB, free: 5.797 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003155/0.0194, allocations: 127.7 kB / 268.1 MB, free: 5.672 MB / 250.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.0009515/0.02035, allocations: 438.7 kB / 268.5 MB, free: 5.285 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004559/0.0208, allocations: 367.5 kB / 268.9 MB, free: 4.898 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.02081, allocations: 4 kB / 268.9 MB, free: 4.895 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.021, allocations: 220.4 kB / 269.1 MB, free: 4.656 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.02138, allocations: 94.3 kB / 269.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008842/0.02226, allocations: 0.7521 MB / 269.9 MB, free: 3.77 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.273e-05/0.02234, allocations: 126.3 kB / 270 MB, free: 3.629 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.02248, allocations: 63.52 kB / 270.1 MB, free: 3.562 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.575e-05/0.02256, allocations: 48.48 kB / 270.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02256, allocations: 3.938 kB / 270.2 MB, free: 3.512 MB / 250.7 MB Notification: Performance of Templates: time 0.008758/0.03132, allocations: 6.116 MB / 276.3 MB, free: 13.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.9936851672828197]