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.00142/0.00142, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001356/0.001356, allocations: 170.5 kB / 25.61 MB, free: 8.926 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.929/0.929, allocations: 177.1 MB / 206.1 MB, free: 4.465 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 1.222e-06/1.222e-06, allocations: 0 / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/1.974e-05, allocations: 2.844 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003191/0.00321, allocations: 2.468 MB / 276.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.005157, allocations: 1.448 MB / 278.1 MB, free: 496 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.005344, allocations: 12.56 kB / 278.1 MB, free: 484 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006809/0.006025, allocations: 248.8 kB / 278.4 MB, free: 236 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004294/0.006454, allocations: 210.4 kB / 278.6 MB, free: 28 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.007014, allocations: 275.6 kB / 278.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.007442, allocations: 484.2 kB / 279.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.007678, allocations: 142.3 kB / 279.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.007948, allocations: 281.8 kB / 279.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.008134, allocations: 167.5 kB / 279.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.008177, allocations: 36 kB / 279.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002468/0.008424, allocations: 123.7 kB / 280 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.00855, allocations: 127.6 kB / 280.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.008665, allocations: 139.5 kB / 280.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.00925, allocations: 458.1 kB / 280.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.009253, allocations: 0 / 280.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.009255, allocations: 0 / 280.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.009272, allocations: 0 / 280.8 MB, free: 13.84 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.001223/0.01049, allocations: 0.8908 MB / 281.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.01054, allocations: 8.031 kB / 281.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.01092, allocations: 108.5 kB / 281.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.01148, allocations: 335.3 kB / 282.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-05/0.01158, allocations: 84.97 kB / 282.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.01163, allocations: 40.38 kB / 282.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/0.01217, allocations: 382.2 kB / 282.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.01218, allocations: 3.938 kB / 282.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.01222, allocations: 12 kB / 282.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.212e-05/0.01225, allocations: 12.5 kB / 282.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.01251, allocations: 160.9 kB / 282.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.01445, allocations: 1.879 MB / 284.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.0149, allocations: 239.1 kB / 284.9 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.01505, allocations: 110.9 kB / 285 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.0151, allocations: 15.97 kB / 285 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003904/0.01549, allocations: 311.9 kB / 285.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.923e-06/0.01549, allocations: 0 / 285.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006473/0.01614, allocations: 416.5 kB / 285.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.01623, allocations: 144.5 kB / 285.9 MB, free: 8.344 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.01664, allocations: 470.2 kB / 286.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.01668, allocations: 37.7 kB / 286.3 MB, free: 7.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.01688, allocations: 299.5 kB / 286.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.163e-05/0.01698, allocations: 87.34 kB / 286.7 MB, free: 7.438 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.01714, allocations: 131.7 kB / 286.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.01734, allocations: 0.5312 MB / 287.4 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.01746, allocations: 82.66 kB / 287.5 MB, free: 6.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.01771, allocations: 294.3 kB / 287.8 MB, free: 6.289 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/0.01808, allocations: 354.1 kB / 288.1 MB, free: 5.855 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.423e-06/0.01809, allocations: 4 kB / 288.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0005716/0.01866, allocations: 406.3 kB / 288.5 MB, free: 5.438 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.0187, allocations: 37.69 kB / 288.5 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.01871, allocations: 4 kB / 288.5 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.01873, allocations: 8.781 kB / 288.5 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.01887, allocations: 47.86 kB / 288.6 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.01887, allocations: 11.98 kB / 288.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.01901, allocations: 55.66 kB / 288.7 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.01903, allocations: 20.16 kB / 288.7 MB, free: 5.25 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.0001884/0.01922, allocations: 239.4 kB / 288.9 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.567e-05/0.01931, allocations: 63.66 kB / 289 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004815/0.01979, allocations: 339.3 kB / 289.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.01979, allocations: 4 kB / 289.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.01979, allocations: 0 / 289.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.0198, allocations: 0 / 289.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007665/0.02057, allocations: 0.5564 MB / 289.9 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.02057, allocations: 4 kB / 289.9 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.752e-05/0.02063, allocations: 19.86 kB / 289.9 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.02064, allocations: 4 kB / 289.9 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.02066, allocations: 11.94 kB / 289.9 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.02067, allocations: 4 kB / 289.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.02067, allocations: 4 kB / 289.9 MB, free: 3.941 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.02119, allocations: 0.503 MB / 290.4 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-05/0.02125, allocations: 47.64 kB / 290.5 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.02131, allocations: 15.94 kB / 290.5 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.02147, allocations: 19.98 kB / 290.5 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.67e-05/0.02156, allocations: 35.94 kB / 290.5 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.02159, allocations: 15.98 kB / 290.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002095/0.0218, allocations: 267 kB / 290.8 MB, free: 3.004 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0218, allocations: 0 / 290.8 MB, free: 3.004 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003994/0.0222, allocations: 115.8 kB / 290.9 MB, free: 2.891 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: 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.001168/0.02337, allocations: 441.3 kB / 291.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.02372, allocations: 331 kB / 291.7 MB, free: 2.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02372, allocations: 0 / 291.7 MB, free: 2.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.02386, allocations: 204.5 kB / 291.9 MB, free: 2.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.02421, allocations: 102.8 kB / 292 MB, free: 1.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008345/0.02504, allocations: 0.7323 MB / 292.7 MB, free: 1.156 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.871e-05/0.02511, allocations: 122.3 kB / 292.8 MB, free: 1.016 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.02521, allocations: 51.42 kB / 292.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.02545, allocations: 166.2 kB / 293 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02546, allocations: 4 kB / 293 MB, free: 0.793 MB / 266.7 MB Notification: Performance of Templates: time 0.008682/0.03414, allocations: 6.03 MB / 299.1 MB, free: 10.84 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.863654003944248]