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.001006/0.001006, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.00101/0.00101, allocations: 140.3 kB / 24.97 MB, free: 9.344 MB / 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.9433/0.9433, allocations: 173.4 MB / 201.5 MB, free: 9.348 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.954e-06/1.954e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.718e-05, allocations: 2.312 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003959/0.003987, allocations: 2.472 MB / 270.5 MB, free: 4.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.006238, allocations: 1.305 MB / 271.8 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.006431, allocations: 15.88 kB / 271.9 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006804/0.007111, allocations: 254.8 kB / 272.1 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.007383, allocations: 175 kB / 272.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005145/0.007897, allocations: 295.1 kB / 272.6 MB, free: 2.215 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.008267, allocations: 483.6 kB / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.008491, allocations: 142 kB / 273.2 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.008704, allocations: 275.3 kB / 273.5 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.008873, allocations: 175.4 kB / 273.6 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.13e-05/0.008915, allocations: 32 kB / 273.7 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.009083, allocations: 135.7 kB / 273.8 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.009192, allocations: 135.5 kB / 273.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.009299, allocations: 131.5 kB / 274 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.009736, allocations: 446.2 kB / 274.5 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.009739, allocations: 0 / 274.5 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.00974, allocations: 0 / 274.5 MB, free: 296 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.009745, allocations: 0 / 274.5 MB, free: 296 kB / 250.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.0009336/0.01068, allocations: 0.8794 MB / 275.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.01071, allocations: 12.92 kB / 275.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.01082, allocations: 92.56 kB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.01119, allocations: 339.3 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.01127, allocations: 92.7 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.01131, allocations: 39.98 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.01191, allocations: 398 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.01192, allocations: 4 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.01194, allocations: 16 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.01197, allocations: 16.5 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.01222, allocations: 184.5 kB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.01351, allocations: 1.949 MB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.01386, allocations: 279 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.01397, allocations: 112.7 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.01402, allocations: 15.94 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.0143, allocations: 335.5 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.483e-06/0.01431, allocations: 0 / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005354/0.01484, allocations: 449.3 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.0149, allocations: 144.5 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.01521, allocations: 462.5 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.01524, allocations: 41.7 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.01537, allocations: 287.7 kB / 280.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.01543, allocations: 95.27 kB / 280.7 MB, free: 9.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.01553, allocations: 119.8 kB / 280.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.01567, allocations: 0.5391 MB / 281.3 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.01578, allocations: 90.66 kB / 281.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.01598, allocations: 318.4 kB / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.01626, allocations: 389.5 kB / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01627, allocations: 0 / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004224/0.01669, allocations: 448.8 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.01672, allocations: 34.17 kB / 282.6 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01672, allocations: 8 kB / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.01674, allocations: 11.94 kB / 282.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.014e-05/0.01683, allocations: 43.91 kB / 282.6 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.01684, allocations: 11.94 kB / 282.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.01696, allocations: 43.77 kB / 282.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.01699, allocations: 27.94 kB / 282.7 MB, free: 7.398 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.0001487/0.01713, allocations: 251.2 kB / 282.9 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.01733, allocations: 59.72 kB / 283 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/0.01774, allocations: 376.8 kB / 283.4 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01774, allocations: 4 kB / 283.4 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.01775, allocations: 4 kB / 283.4 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01775, allocations: 0 / 283.4 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005828/0.01834, allocations: 0.6564 MB / 284 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01834, allocations: 0 / 284 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.01838, allocations: 23.92 kB / 284.1 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.01838, allocations: 8 kB / 284.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.0184, allocations: 11.98 kB / 284.1 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.0184, allocations: 4 kB / 284.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.0184, allocations: 0 / 284.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004089/0.01881, allocations: 0.5564 MB / 284.6 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.01885, allocations: 47.64 kB / 284.7 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.01889, allocations: 12 kB / 284.7 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.775e-05/0.01899, allocations: 19.98 kB / 284.7 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.01907, allocations: 51.72 kB / 284.8 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.01909, allocations: 12 kB / 284.8 MB, free: 5.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001725/0.01926, allocations: 287.1 kB / 285.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01926, allocations: 0 / 285.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.01957, allocations: 123.7 kB / 285.2 MB, free: 4.805 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.0009794/0.02055, allocations: 434.2 kB / 285.6 MB, free: 4.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000381/0.02093, allocations: 363.1 kB / 286 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.02093, allocations: 0.9375 kB / 286 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.0211, allocations: 220.7 kB / 286.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.02146, allocations: 99.23 kB / 286.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008131/0.02227, allocations: 0.7564 MB / 287 MB, free: 3.004 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.913e-05/0.02234, allocations: 118.3 kB / 287.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.02247, allocations: 71.38 kB / 287.2 MB, free: 2.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.86e-05/0.02255, allocations: 48.48 kB / 287.3 MB, free: 2.754 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02255, allocations: 3.938 kB / 287.3 MB, free: 2.75 MB / 266.7 MB Notification: Performance of Templates: time 0.1002/0.1228, allocations: 5.668 MB / 292.9 MB, free: 28.01 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: 2.880941706011072]