Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 103.6 kB / 21.18 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00193/0.00193, allocations: 209.3 kB / 24.48 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 47.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2707, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004496/0.2752, allocations: 2.401 MB / 434.7 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.2781, allocations: 1.414 MB / 436.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.2784, allocations: 15.88 kB / 436.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.2792, allocations: 254.9 kB / 436.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000551/0.2798, allocations: 209.4 kB / 436.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.2805, allocations: 263.4 kB / 436.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.281, allocations: 487.6 kB / 437.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.2813, allocations: 154.1 kB / 437.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.2816, allocations: 203.2 kB / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.2818, allocations: 215 kB / 437.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.248e-05/0.2819, allocations: 36 kB / 438 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.2822, allocations: 127.9 kB / 438.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2823, allocations: 127.5 kB / 438.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.2825, allocations: 182.9 kB / 438.4 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007517/0.2833, allocations: 0.5589 MB / 438.9 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2833, allocations: 4 kB / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2833, allocations: 0 / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.2833, allocations: 0 / 438.9 MB, free: 104 kB / 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.001496/0.2848, allocations: 0.7951 MB / 439.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2848, allocations: 8.031 kB / 439.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003066/0.2851, allocations: 76.55 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.2857, allocations: 328.4 kB / 440.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.25e-05/0.2858, allocations: 88.95 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.2859, allocations: 43.94 kB / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007055/0.2866, allocations: 457.5 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.2866, allocations: 4 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.2866, allocations: 16 kB / 440.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.2867, allocations: 12.44 kB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.2872, allocations: 291.2 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.2891, allocations: 1.512 MB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005967/0.2897, allocations: 309.5 kB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.29, allocations: 140.2 kB / 443 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.668e-05/0.29, allocations: 19.97 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004939/0.2905, allocations: 351.7 kB / 443.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.2905, allocations: 0 / 443.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001038/0.2916, allocations: 0.5259 MB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/0.2916, allocations: 136.5 kB / 444 MB, free: 10.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00062/0.2923, allocations: 0.4935 MB / 444.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.2923, allocations: 41.7 kB / 444.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.2925, allocations: 244.9 kB / 444.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.2926, allocations: 87.36 kB / 444.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.2928, allocations: 114.2 kB / 445 MB, free: 9.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.293, allocations: 362.7 kB / 445.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.2933, allocations: 142.6 kB / 445.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.2937, allocations: 320.6 kB / 445.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005637/0.2942, allocations: 406.5 kB / 446.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2942, allocations: 0 / 446.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008241/0.295, allocations: 0.4925 MB / 446.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.2951, allocations: 37.69 kB / 446.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2951, allocations: 4 kB / 446.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.2951, allocations: 8 kB / 446.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2953, allocations: 43.86 kB / 446.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.2953, allocations: 7.984 kB / 446.8 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.2955, allocations: 55.66 kB / 446.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.2956, allocations: 24.28 kB / 446.8 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.0003007/0.2959, allocations: 256.8 kB / 447.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.2959, allocations: 47.72 kB / 447.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007464/0.2967, allocations: 418.4 kB / 447.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2967, allocations: 8 kB / 447.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2967, allocations: 0 / 447.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.2967, allocations: 4 kB / 447.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.2977, allocations: 0.6269 MB / 448.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.2977, allocations: 4 kB / 448.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.868e-05/0.2978, allocations: 11.94 kB / 448.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.2978, allocations: 4 kB / 448.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.2978, allocations: 11.98 kB / 448.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2978, allocations: 4 kB / 448.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2978, allocations: 96 / 448.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000751/0.2986, allocations: 0.5354 MB / 448.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.205e-05/0.2986, allocations: 59.52 kB / 448.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.82e-05/0.2987, allocations: 8 kB / 448.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.2989, allocations: 23.98 kB / 448.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.299, allocations: 47.92 kB / 448.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.2991, allocations: 12 kB / 448.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003722/0.2994, allocations: 327.1 kB / 449.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2994, allocations: 0 / 449.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004816/0.2999, allocations: 111.8 kB / 449.3 MB, free: 5.039 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 (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.001706/0.3016, allocations: 496 kB / 449.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007479/0.3024, allocations: 427.2 kB / 450.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3024, allocations: 3.938 kB / 450.2 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.3028, allocations: 247.2 kB / 450.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005493/0.3033, allocations: 77.86 kB / 450.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.3048, allocations: 0.8617 MB / 451.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.3051, allocations: 242.7 kB / 451.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.3052, allocations: 39.42 kB / 451.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3052, allocations: 4 kB / 451.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of Templates: time 0.01036/0.3156, allocations: 6.243 MB / 457.9 MB, free: 12.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.36834251601249]