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.001517/0.001517, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001647/0.001647, allocations: 217.7 kB / 24.5 MB, free: 4.133 MB / 14.72 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.453/1.453, allocations: 230.5 MB / 258.1 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 55.91 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2674, allocations: 53.42 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004288/0.2717, allocations: 2.513 MB / 435 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.2744, allocations: 1.503 MB / 436.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2746, allocations: 11.88 kB / 436.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007578/0.2753, allocations: 246.9 kB / 436.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004849/0.2758, allocations: 203 kB / 436.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006526/0.2765, allocations: 278.9 kB / 437.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005639/0.277, allocations: 479.7 kB / 437.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003035/0.2774, allocations: 150.3 kB / 437.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.2776, allocations: 207.2 kB / 438 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.2779, allocations: 223 kB / 438.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.998e-05/0.278, allocations: 36 kB / 438.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.2782, allocations: 123.9 kB / 438.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.2784, allocations: 127.5 kB / 438.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.2786, allocations: 218.7 kB / 438.7 MB, free: 460 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007424/0.2793, allocations: 0.5689 MB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2793, allocations: 0 / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2793, allocations: 0 / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2793, allocations: 0 / 439.3 MB, free: 15.89 MB / 350.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.001423/0.2808, allocations: 0.8027 MB / 440.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2808, allocations: 12.03 kB / 440.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000255/0.281, allocations: 76.48 kB / 440.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005756/0.2816, allocations: 329.5 kB / 440.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.732e-05/0.2817, allocations: 84.97 kB / 440.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.2818, allocations: 40.38 kB / 440.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007195/0.2825, allocations: 436.8 kB / 441 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.2825, allocations: 0 / 441 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.2825, allocations: 12 kB / 441.1 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.2826, allocations: 16.44 kB / 441.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005152/0.2831, allocations: 269.4 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.2852, allocations: 1.628 MB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006316/0.2858, allocations: 279.9 kB / 443.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.2861, allocations: 110.5 kB / 443.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.638e-05/0.2861, allocations: 4 kB / 443.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005295/0.2867, allocations: 333.2 kB / 443.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.753e-06/0.2867, allocations: 0 / 443.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.00101/0.2877, allocations: 474.7 kB / 444.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.2878, allocations: 166.2 kB / 444.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.2884, allocations: 0.4936 MB / 444.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.2885, allocations: 37.7 kB / 444.8 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.2887, allocations: 236.9 kB / 445.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.361e-05/0.2887, allocations: 87.36 kB / 445.1 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.2889, allocations: 122.1 kB / 445.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.2891, allocations: 350.8 kB / 445.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.2893, allocations: 124.9 kB / 445.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.2897, allocations: 266.1 kB / 446 MB, free: 8.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005621/0.2903, allocations: 411.1 kB / 446.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2903, allocations: 4 kB / 446.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007766/0.291, allocations: 462.9 kB / 446.8 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.2911, allocations: 37.77 kB / 446.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2911, allocations: 4 kB / 446.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.2911, allocations: 8.312 kB / 446.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.2913, allocations: 47.84 kB / 446.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.2913, allocations: 4 kB / 446.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.2915, allocations: 59.66 kB / 447 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.2916, allocations: 20 kB / 447 MB, free: 7.637 MB / 350.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.000289/0.2918, allocations: 252.6 kB / 447.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.934e-05/0.2919, allocations: 51.67 kB / 447.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007226/0.2926, allocations: 378.9 kB / 447.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.2927, allocations: 11.88 kB / 447.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2927, allocations: 0 / 447.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.2927, allocations: 3.984 kB / 447.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.2938, allocations: 0.7229 MB / 448.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2938, allocations: 0 / 448.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.653e-05/0.2938, allocations: 15.94 kB / 448.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.2938, allocations: 0 / 448.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.2939, allocations: 11.98 kB / 448.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.2939, allocations: 4 kB / 448.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2939, allocations: 0 / 448.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007479/0.2946, allocations: 0.5042 MB / 449 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.928e-05/0.2947, allocations: 43.59 kB / 449 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-05/0.2947, allocations: 12 kB / 449 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.295, allocations: 23.97 kB / 449 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.2951, allocations: 39.94 kB / 449.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.2951, allocations: 23.98 kB / 449.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003739/0.2955, allocations: 327.1 kB / 449.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2955, allocations: 0 / 449.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004672/0.2959, allocations: 119.7 kB / 449.5 MB, free: 5.016 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: 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 (34): * Single equations (assignments): 28 * 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.001672/0.2976, allocations: 444.6 kB / 450 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006961/0.2983, allocations: 360.4 kB / 450.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2983, allocations: 0 / 450.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.2987, allocations: 203.2 kB / 450.5 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.2992, allocations: 93.45 kB / 450.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3007, allocations: 0.8328 MB / 451.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.3013, allocations: 0.8356 MB / 452.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3014, allocations: 43.42 kB / 452.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3014, allocations: 0 / 452.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of Templates: time 0.01022/0.3116, allocations: 6.178 MB / 458.5 MB, free: 12.11 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.173153927084059]