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.001415/0.001415, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001708/0.001708, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9671/0.9671, allocations: 177 MB / 204.9 MB, free: 5.578 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 1.643e-06/1.643e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.656e-05/2.82e-05, allocations: 5.266 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003707/0.003735, allocations: 2.506 MB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.005607, allocations: 1.464 MB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.005771, allocations: 15.88 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005908/0.006362, allocations: 246.8 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.006748, allocations: 210.9 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.007298, allocations: 275.1 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.007762, allocations: 491.6 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.007997, allocations: 134.3 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002835/0.008281, allocations: 279.3 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.008455, allocations: 171.5 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.139e-05/0.008496, allocations: 36 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.008707, allocations: 123.8 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.008825, allocations: 131.5 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.008948, allocations: 139.6 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.009524, allocations: 450.1 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.00953, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.009531, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.00954, allocations: 0 / 279.5 MB, free: 10.8 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.0009648/0.0105, allocations: 0.8909 MB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.01054, allocations: 11.98 kB / 280.4 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.01077, allocations: 104.5 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.01112, allocations: 339.3 kB / 280.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.599e-05/0.01119, allocations: 84.97 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.01122, allocations: 40.38 kB / 281 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/0.01163, allocations: 402.5 kB / 281.4 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.01164, allocations: 192 / 281.4 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.01166, allocations: 16.12 kB / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/0.01169, allocations: 20.44 kB / 281.4 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.01213, allocations: 192.5 kB / 281.6 MB, free: 8.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.01346, allocations: 1.934 MB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.01381, allocations: 270 kB / 283.8 MB, free: 6.254 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.01391, allocations: 112.7 kB / 283.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.01395, allocations: 11.98 kB / 283.9 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.01423, allocations: 332.5 kB / 284.2 MB, free: 5.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.463e-06/0.01423, allocations: 0 / 284.2 MB, free: 5.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005178/0.01474, allocations: 446.1 kB / 284.7 MB, free: 5.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.01481, allocations: 140.5 kB / 284.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.01512, allocations: 482.4 kB / 285.3 MB, free: 4.621 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.01515, allocations: 37.7 kB / 285.3 MB, free: 4.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.01529, allocations: 291.6 kB / 285.6 MB, free: 4.285 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.01535, allocations: 87.36 kB / 285.7 MB, free: 4.199 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.01547, allocations: 123.8 kB / 285.8 MB, free: 4.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.01562, allocations: 0.5274 MB / 286.3 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.01574, allocations: 98.66 kB / 286.4 MB, free: 3.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.01595, allocations: 314.3 kB / 286.8 MB, free: 3.027 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.01627, allocations: 389.9 kB / 287.1 MB, free: 2.559 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.01627, allocations: 4 kB / 287.1 MB, free: 2.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004371/0.01671, allocations: 428.2 kB / 287.6 MB, free: 2.117 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.01674, allocations: 41.64 kB / 287.6 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.01675, allocations: 4.469 kB / 287.6 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.01677, allocations: 8 kB / 287.6 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.563e-05/0.01686, allocations: 51.84 kB / 287.7 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.01687, allocations: 8 kB / 287.7 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.01699, allocations: 47.66 kB / 287.7 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.01701, allocations: 20 kB / 287.7 MB, free: 1.934 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.000148/0.01716, allocations: 251.4 kB / 288 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.01722, allocations: 67.64 kB / 288 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003667/0.01758, allocations: 355.8 kB / 288.4 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.01759, allocations: 7.938 kB / 288.4 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.01759, allocations: 4 kB / 288.4 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.0176, allocations: 0 / 288.4 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007707/0.01837, allocations: 0.6262 MB / 289 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.01837, allocations: 0 / 289 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.678e-05/0.01841, allocations: 19.92 kB / 289 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.01841, allocations: 0 / 289 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.01843, allocations: 23.98 kB / 289.1 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.01843, allocations: 4 kB / 289.1 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01843, allocations: 0 / 289.1 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.01882, allocations: 0.5298 MB / 289.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.01886, allocations: 47.64 kB / 289.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.0189, allocations: 15.94 kB / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.246e-05/0.01899, allocations: 15.98 kB / 289.7 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.01908, allocations: 39.94 kB / 289.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.0191, allocations: 15.98 kB / 289.7 MB, free: 15.81 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001766/0.01928, allocations: 283.1 kB / 290 MB, free: 15.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01928, allocations: 4 kB / 290 MB, free: 15.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.01959, allocations: 115.8 kB / 290.1 MB, free: 15.42 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.0008733/0.02046, allocations: 422.1 kB / 290.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003839/0.02085, allocations: 371 kB / 290.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.02085, allocations: 0 / 290.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.021, allocations: 217.3 kB / 291.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.02134, allocations: 102.5 kB / 291.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008941/0.02224, allocations: 0.7369 MB / 292 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.683e-05/0.02231, allocations: 126.2 kB / 292.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.02244, allocations: 75.41 kB / 292.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.333e-05/0.02251, allocations: 36.5 kB / 292.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.02251, allocations: 0 / 292.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of Templates: time 0.008569/0.03108, allocations: 5.806 MB / 298 MB, free: 7.602 MB / 282.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.9553163829259574]