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.00129/0.00129, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.00428/0.00428, allocations: 168.2 kB / 24.99 MB, free: 8.801 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 1.081/1.081, allocations: 177 MB / 205.2 MB, free: 5.598 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 2.134e-06/2.134e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.096e-05/3.309e-05, allocations: 6.312 kB / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.007326/0.007359, allocations: 2.498 MB / 275.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005507/0.01287, allocations: 1.471 MB / 277 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.01311, allocations: 7.938 kB / 277 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.0169, allocations: 250.7 kB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000523/0.01742, allocations: 199 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.01806, allocations: 283 kB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006359/0.0187, allocations: 483.6 kB / 278.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.01898, allocations: 146.2 kB / 278.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.01927, allocations: 271.4 kB / 278.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.01948, allocations: 175.5 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.01953, allocations: 36 kB / 278.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003236/0.02277, allocations: 119.8 kB / 278.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.02291, allocations: 131.5 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.02306, allocations: 135.6 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006378/0.0237, allocations: 450.1 kB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.0237, allocations: 4 kB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.0237, allocations: 4 kB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.02371, allocations: 3.938 kB / 279.6 MB, free: 11.11 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.001211/0.02492, allocations: 0.8831 MB / 280.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.02497, allocations: 11.98 kB / 280.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000319/0.02529, allocations: 104.5 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003455/0.02875, allocations: 335.3 kB / 280.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.653e-05/0.02884, allocations: 88.95 kB / 281 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.02888, allocations: 36.38 kB / 281 MB, free: 9.574 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.0294, allocations: 402.5 kB / 281.4 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.02942, allocations: 4.125 kB / 281.4 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.02945, allocations: 24.12 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.02947, allocations: 16.48 kB / 281.5 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.02976, allocations: 176.5 kB / 281.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.03141, allocations: 1.945 MB / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.03184, allocations: 263.1 kB / 283.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.03198, allocations: 123.8 kB / 284 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.03203, allocations: 8 kB / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.03238, allocations: 332.4 kB / 284.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.294e-06/0.03238, allocations: 0 / 284.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.000684/0.03306, allocations: 450.2 kB / 284.7 MB, free: 5.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002237/0.03329, allocations: 140.5 kB / 284.9 MB, free: 5.426 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.03373, allocations: 478.4 kB / 285.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.03377, allocations: 37.7 kB / 285.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.03394, allocations: 291.6 kB / 285.7 MB, free: 4.605 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.818e-05/0.03402, allocations: 91.36 kB / 285.8 MB, free: 4.516 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.03417, allocations: 123.8 kB / 285.9 MB, free: 4.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.03435, allocations: 0.5352 MB / 286.4 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.03449, allocations: 90.66 kB / 286.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.03475, allocations: 318.3 kB / 286.8 MB, free: 3.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.03512, allocations: 378 kB / 287.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.03513, allocations: 4 kB / 287.2 MB, free: 2.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0005807/0.03571, allocations: 432.3 kB / 287.6 MB, free: 2.438 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.03575, allocations: 41.62 kB / 287.7 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.03576, allocations: 4 kB / 287.7 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.03578, allocations: 8 kB / 287.7 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.03591, allocations: 47.84 kB / 287.7 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.03592, allocations: 8.469 kB / 287.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.0361, allocations: 59.66 kB / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.03613, allocations: 20 kB / 287.8 MB, free: 2.246 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.0001814/0.03631, allocations: 239.3 kB / 288 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.03639, allocations: 63.66 kB / 288.1 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004304/0.03682, allocations: 352 kB / 288.4 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.03683, allocations: 7.938 kB / 288.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.03683, allocations: 4 kB / 288.5 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.03684, allocations: 3.984 kB / 288.5 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005995/0.03744, allocations: 0.6301 MB / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.03744, allocations: 0 / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.03748, allocations: 19.92 kB / 289.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.03748, allocations: 4 kB / 289.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.03751, allocations: 11.94 kB / 289.1 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.03751, allocations: 4 kB / 289.1 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.03751, allocations: 0 / 289.1 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003958/0.03791, allocations: 0.5299 MB / 289.7 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.03795, allocations: 55.59 kB / 289.7 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.142e-05/0.03799, allocations: 11.94 kB / 289.7 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.03809, allocations: 23.98 kB / 289.7 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/0.03818, allocations: 39.92 kB / 289.8 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.0382, allocations: 12 kB / 289.8 MB, free: 136 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.03839, allocations: 287.1 kB / 290.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.03839, allocations: 0 / 290.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.03872, allocations: 115.8 kB / 290.2 MB, free: 15.74 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.0009359/0.03966, allocations: 421.1 kB / 290.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.04006, allocations: 371 kB / 291 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.04006, allocations: 0 / 291 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.04023, allocations: 212.3 kB / 291.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.0406, allocations: 95.69 kB / 291.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.04177, allocations: 0.7486 MB / 292 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.471e-05/0.04184, allocations: 118.2 kB / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.04197, allocations: 71.64 kB / 292.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.162e-05/0.04205, allocations: 44.48 kB / 292.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.573e-06/0.04206, allocations: 0 / 292.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of Templates: time 0.008391/0.05045, allocations: 5.431 MB / 297.7 MB, free: 8.305 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: 3.2462479469832033]