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.001431/0.001431, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001777/0.001777, allocations: 170.4 kB / 24.82 MB, free: 8.879 MB / 18.57 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 0.9929/0.9929, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.[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.1.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.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.757e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003201/0.003228, allocations: 2.474 MB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.005395, allocations: 1.449 MB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/0.005616, allocations: 15.88 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006779/0.006294, allocations: 250.7 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000411/0.006705, allocations: 207 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.00725, allocations: 279 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004586/0.007708, allocations: 483.6 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.007927, allocations: 138.3 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.008216, allocations: 275.3 kB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.008397, allocations: 175.5 kB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.008436, allocations: 32 kB / 279.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.008638, allocations: 127.8 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.008751, allocations: 127.5 kB / 279.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.008849, allocations: 135.6 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005336/0.009382, allocations: 454.1 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.009385, allocations: 4 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.009387, allocations: 0 / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.009392, allocations: 0 / 280 MB, free: 10.68 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.0009437/0.01034, allocations: 0.8907 MB / 280.9 MB, free: 9.738 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.01037, allocations: 12.03 kB / 280.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002425/0.01062, allocations: 104.5 kB / 281 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.01095, allocations: 339.3 kB / 281.3 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.048e-05/0.01102, allocations: 92.94 kB / 281.4 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.01105, allocations: 32.38 kB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/0.01141, allocations: 378.2 kB / 281.8 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.01142, allocations: 0 / 281.8 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.01144, allocations: 19.94 kB / 281.8 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.01147, allocations: 12.5 kB / 281.8 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.01162, allocations: 153 kB / 282 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.01287, allocations: 1.883 MB / 283.9 MB, free: 6.566 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.01318, allocations: 243.2 kB / 284.1 MB, free: 6.285 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/0.01326, allocations: 108.7 kB / 284.2 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.01331, allocations: 8 kB / 284.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.01355, allocations: 320.6 kB / 284.5 MB, free: 5.789 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.01356, allocations: 0 / 284.5 MB, free: 5.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004404/0.014, allocations: 417.2 kB / 284.9 MB, free: 5.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.01405, allocations: 140.5 kB / 285.1 MB, free: 5.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.01433, allocations: 474.2 kB / 285.5 MB, free: 4.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.01436, allocations: 37.7 kB / 285.6 MB, free: 4.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.01449, allocations: 299.5 kB / 285.9 MB, free: 4.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.945e-05/0.01455, allocations: 87.34 kB / 285.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.01466, allocations: 127.7 kB / 286.1 MB, free: 4.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.01482, allocations: 0.5351 MB / 286.6 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.23e-05/0.0149, allocations: 74.66 kB / 286.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.01507, allocations: 305.7 kB / 287 MB, free: 3.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.01536, allocations: 360.4 kB / 287.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.01537, allocations: 0 / 287.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004216/0.01579, allocations: 404.8 kB / 287.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/0.01584, allocations: 37.7 kB / 287.8 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.01585, allocations: 4 kB / 287.8 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.01587, allocations: 8 kB / 287.8 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.01599, allocations: 48.62 kB / 287.8 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.016, allocations: 12 kB / 287.8 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.01615, allocations: 51.66 kB / 287.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.01617, allocations: 16 kB / 287.9 MB, free: 2.102 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,showValue.active,showValue2.active,showValue3.active,showValue4.active,showValue1.number,showValue5.active,showValue6.active,set1.expr[1],set1.expr[2],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,triggeredAdd.local_reset,triggeredAdd.local_set) * 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.0002299/0.0164, allocations: 247.3 kB / 288.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.01648, allocations: 63.66 kB / 288.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004233/0.0169, allocations: 332.5 kB / 288.5 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.01691, allocations: 4 kB / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01691, allocations: 0 / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.01692, allocations: 3.984 kB / 288.5 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006942/0.01762, allocations: 0.5554 MB / 289.1 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.01762, allocations: 0 / 289.1 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.028e-05/0.01766, allocations: 19.92 kB / 289.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.01767, allocations: 3.984 kB / 289.1 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.01768, allocations: 15.94 kB / 289.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.01769, allocations: 3.984 kB / 289.1 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.01769, allocations: 4 kB / 289.1 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.01808, allocations: 0.5108 MB / 289.6 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.01812, allocations: 43.59 kB / 289.7 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.01816, allocations: 23.92 kB / 289.7 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.629e-05/0.01826, allocations: 15.98 kB / 289.7 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.457e-05/0.01834, allocations: 39.94 kB / 289.8 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.01836, allocations: 12 kB / 289.8 MB, free: 108 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001734/0.01854, allocations: 267 kB / 290 MB, free: 15.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01854, allocations: 0 / 290 MB, free: 15.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003584/0.01889, allocations: 115.8 kB / 290.2 MB, free: 15.73 MB / 282.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: 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.0008525/0.01975, allocations: 429 kB / 290.6 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003823/0.02013, allocations: 334.9 kB / 290.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.02013, allocations: 4 kB / 290.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.02029, allocations: 200.5 kB / 291.1 MB, free: 14.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.02065, allocations: 99.48 kB / 291.2 MB, free: 14.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008644/0.02151, allocations: 0.7369 MB / 291.9 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.905e-05/0.02159, allocations: 130.2 kB / 292.1 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.0217, allocations: 43.3 kB / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.0219, allocations: 166.1 kB / 292.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of SimCode: time 7.62e-07/0.0219, allocations: 4 kB / 292.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of Templates: time 0.008125/0.03003, allocations: 5.931 MB / 298.2 MB, free: 7.789 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9399251248687506]