Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 184.5 kB / 22.21 MB, free: 116 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.92 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2709, allocations: 52.13 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004437/0.2753, allocations: 2.502 MB / 423.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002578/0.2779, allocations: 1.352 MB / 424.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.2781, allocations: 7.938 kB / 424.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008598/0.279, allocations: 242.5 kB / 425 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004065/0.2794, allocations: 171.1 kB / 425.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007606/0.2802, allocations: 291.3 kB / 425.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005562/0.2807, allocations: 479.6 kB / 425.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.281, allocations: 149.9 kB / 426 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.2813, allocations: 191.2 kB / 426.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.2816, allocations: 223 kB / 426.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.2816, allocations: 36 kB / 426.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.2819, allocations: 119.9 kB / 426.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.282, allocations: 123.6 kB / 426.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.2822, allocations: 222.6 kB / 426.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.283, allocations: 0.5612 MB / 427.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.283, allocations: 0 / 427.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.283, allocations: 0 / 427.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.283, allocations: 0 / 427.5 MB, free: 8.48 MB / 334.1 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.001476/0.2845, allocations: 0.8703 MB / 428.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2845, allocations: 8.031 kB / 428.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.2846, allocations: 60.61 kB / 428.4 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006155/0.2852, allocations: 410.8 kB / 428.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.2853, allocations: 54.7 kB / 428.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.2854, allocations: 40 kB / 428.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007109/0.2861, allocations: 432.6 kB / 429.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.2861, allocations: 4 kB / 429.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.2861, allocations: 12 kB / 429.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.718e-05/0.2862, allocations: 12.44 kB / 429.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.2866, allocations: 269.5 kB / 429.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.2886, allocations: 1.674 MB / 431.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.2892, allocations: 280 kB / 431.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.2895, allocations: 114.5 kB / 431.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.455e-05/0.2895, allocations: 12.06 kB / 431.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000517/0.2901, allocations: 332.9 kB / 432 MB, free: 3.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.853e-06/0.2901, allocations: 0 / 432 MB, free: 3.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001036/0.2911, allocations: 490.1 kB / 432.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.2912, allocations: 170.2 kB / 432.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005561/0.2918, allocations: 493.4 kB / 433.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.2918, allocations: 41.7 kB / 433.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.292, allocations: 232.9 kB / 433.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/0.2921, allocations: 87.38 kB / 433.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.2923, allocations: 118.2 kB / 433.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.2925, allocations: 358.8 kB / 434 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.2928, allocations: 117.1 kB / 434.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.2932, allocations: 266.7 kB / 434.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006413/0.2938, allocations: 426.7 kB / 434.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.423e-06/0.2938, allocations: 4 kB / 434.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008454/0.2947, allocations: 478.9 kB / 435.2 MB, free: 204 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.2947, allocations: 37.7 kB / 435.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.2947, allocations: 4 kB / 435.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.2948, allocations: 4 kB / 435.3 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.2949, allocations: 43.91 kB / 435.3 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.045e-05/0.2949, allocations: 19.81 kB / 435.3 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.2952, allocations: 55.66 kB / 435.4 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.2952, allocations: 23.98 kB / 435.4 MB, free: 8 kB / 334.1 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.0003256/0.2955, allocations: 248.6 kB / 435.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.329e-05/0.2956, allocations: 47.72 kB / 435.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007973/0.2964, allocations: 422.5 kB / 436.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.2964, allocations: 4 kB / 436.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.2964, allocations: 7.938 kB / 436.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.2964, allocations: 4 kB / 436.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.2976, allocations: 0.7754 MB / 436.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.2976, allocations: 3.984 kB / 436.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-05/0.2976, allocations: 23.86 kB / 436.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2976, allocations: 0 / 436.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.2977, allocations: 12 kB / 436.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.2977, allocations: 3.984 kB / 436.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2977, allocations: 0 / 436.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007705/0.2985, allocations: 0.5097 MB / 437.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.2986, allocations: 124.7 kB / 437.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.763e-05/0.2986, allocations: 15.98 kB / 437.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.2988, allocations: 23.98 kB / 437.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.299, allocations: 39.95 kB / 437.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.299, allocations: 19.98 kB / 437.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003642/0.2994, allocations: 323.1 kB / 438 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2994, allocations: 0 / 438 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.2999, allocations: 119.8 kB / 438.1 MB, free: 13.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (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,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],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 (36): * Single equations (assignments): 30 * 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.00171/0.3016, allocations: 468.3 kB / 438.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007595/0.3023, allocations: 370.9 kB / 438.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3023, allocations: 4 kB / 438.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.3027, allocations: 196.2 kB / 439.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/0.3032, allocations: 93.94 kB / 439.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.3047, allocations: 0.7987 MB / 440 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.3052, allocations: 0.84 MB / 440.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.3054, allocations: 79.2 kB / 440.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.3055, allocations: 43.42 kB / 441 MB, free: 10.39 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3055, allocations: 0 / 441 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01215/0.3177, allocations: 5.597 MB / 446.6 MB, free: 4.824 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.656891429796815]