Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009081/0.0009081, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 164.2 kB / 24.91 MB, free: 8.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9506/0.9506, allocations: 177 MB / 205.2 MB, free: 5.047 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.348e-05/1.444e-05, allocations: 2.312 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002898/0.002912, allocations: 2.488 MB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.005031, allocations: 1.491 MB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.005215, allocations: 11.94 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004943/0.005709, allocations: 234.8 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003543/0.006064, allocations: 218.8 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004847/0.006548, allocations: 271.2 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.006962, allocations: 491.5 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.007212, allocations: 152.3 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.007467, allocations: 271.4 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.00764, allocations: 163.5 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.007679, allocations: 36 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.00785, allocations: 131.7 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.007952, allocations: 131.6 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.777e-05/0.008049, allocations: 143.5 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.008477, allocations: 446.1 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.008478, allocations: 0 / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.008481, allocations: 3.984 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.008485, allocations: 0 / 280 MB, free: 10.41 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.0006854/0.009171, allocations: 0.7428 MB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.0092, allocations: 15.97 kB / 280.8 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.009377, allocations: 84.86 kB / 280.8 MB, free: 9.531 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.009682, allocations: 296.6 kB / 281.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/0.009739, allocations: 84.95 kB / 281.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.009772, allocations: 40.38 kB / 281.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.01008, allocations: 360.9 kB / 281.6 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.01009, allocations: 192 / 281.6 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.01011, allocations: 16.12 kB / 281.6 MB, free: 8.664 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.01013, allocations: 16.48 kB / 281.6 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.01028, allocations: 158.6 kB / 281.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.01128, allocations: 1.298 MB / 283.1 MB, free: 7.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.01154, allocations: 309.7 kB / 283.4 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.234e-05/0.01161, allocations: 92.25 kB / 283.5 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.01164, allocations: 8 kB / 283.5 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.01186, allocations: 309 kB / 283.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.122e-06/0.01186, allocations: 0 / 283.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0003019/0.01216, allocations: 325.3 kB / 284.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.01221, allocations: 140.5 kB / 284.3 MB, free: 5.824 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.01247, allocations: 408.7 kB / 284.7 MB, free: 5.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.0125, allocations: 41.7 kB / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/0.01258, allocations: 197.8 kB / 284.9 MB, free: 5.168 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/0.01264, allocations: 91.27 kB / 285 MB, free: 5.078 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.01274, allocations: 126 kB / 285.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.01283, allocations: 366.6 kB / 285.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.468e-05/0.0129, allocations: 69.52 kB / 285.5 MB, free: 4.504 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.01308, allocations: 240.6 kB / 285.8 MB, free: 4.199 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.0133, allocations: 322.9 kB / 286.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.0133, allocations: 4 kB / 286.1 MB, free: 3.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0002647/0.01356, allocations: 330.1 kB / 286.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.0136, allocations: 33.7 kB / 286.4 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.0136, allocations: 4.469 kB / 286.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.01362, allocations: 12 kB / 286.5 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-05/0.0137, allocations: 47.84 kB / 286.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.0137, allocations: 4 kB / 286.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.01381, allocations: 55.66 kB / 286.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.01383, allocations: 16 kB / 286.6 MB, free: 3.289 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.000139/0.01397, allocations: 203.7 kB / 286.8 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.01401, allocations: 47.95 kB / 286.8 MB, free: 3.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.01425, allocations: 268.1 kB / 287.1 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.01425, allocations: 7.984 kB / 287.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01426, allocations: 0 / 287.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.01426, allocations: 4 kB / 287.1 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004179/0.01468, allocations: 458.6 kB / 287.5 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01468, allocations: 0 / 287.5 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.987e-05/0.01471, allocations: 15.94 kB / 287.6 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.01472, allocations: 4 kB / 287.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.01474, allocations: 11.98 kB / 287.6 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.01474, allocations: 7.938 kB / 287.6 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.01474, allocations: 4 kB / 287.6 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.01499, allocations: 414.8 kB / 288 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.438e-05/0.01502, allocations: 43.66 kB / 288 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.01506, allocations: 12 kB / 288 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.01514, allocations: 23.92 kB / 288.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.934e-05/0.01522, allocations: 42.77 kB / 288.1 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.01524, allocations: 15.92 kB / 288.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.01535, allocations: 148.7 kB / 288.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01535, allocations: 0 / 288.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.01561, allocations: 119.8 kB / 288.4 MB, free: 1.371 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.001219/0.01682, allocations: 0.5315 MB / 288.9 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.01712, allocations: 321 kB / 289.2 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.01712, allocations: 4 kB / 289.2 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.01725, allocations: 189.8 kB / 289.4 MB, free: 484 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.01752, allocations: 108.3 kB / 289.5 MB, free: 380 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1337/0.1512, allocations: 0.7299 MB / 290.3 MB, free: 24.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.607e-05/0.1513, allocations: 115.2 kB / 290.4 MB, free: 24.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.1515, allocations: 48.22 kB / 290.4 MB, free: 24.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.1517, allocations: 146.1 kB / 290.6 MB, free: 24.38 MB / 266.7 MB Notification: Performance of SimCode: time 1.613e-06/0.1517, allocations: 0 / 290.6 MB, free: 24.38 MB / 266.7 MB Notification: Performance of Templates: time 0.0103/0.162, allocations: 5.759 MB / 296.3 MB, free: 23.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8414094378240407]