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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 226.7 MB / 245.5 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 105.5 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001409, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2905, allocations: 50.45 MB / 407 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00484/0.2954, allocations: 2.515 MB / 409.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002907/0.2984, allocations: 1.486 MB / 411 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003043/0.2987, allocations: 7.938 kB / 411 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007199/0.2995, allocations: 213.9 kB / 411.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004553/0.2999, allocations: 173.1 kB / 411.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006622/0.3006, allocations: 261.1 kB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.301, allocations: 467.7 kB / 412.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000261/0.3013, allocations: 209.8 kB / 412.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.3014, allocations: 175.2 kB / 412.5 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.3016, allocations: 211 kB / 412.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.3017, allocations: 20 kB / 412.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.3019, allocations: 103.9 kB / 412.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.166e-05/0.302, allocations: 115.6 kB / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3021, allocations: 210.6 kB / 413.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.3025, allocations: 0.5076 MB / 413.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3025, allocations: 0 / 413.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.3025, allocations: 0 / 413.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3025, allocations: 0 / 413.7 MB, free: 21.13 MB / 298.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.001109/0.3036, allocations: 0.8515 MB / 414.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.3037, allocations: 12.02 kB / 414.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.008e-05/0.3038, allocations: 60.19 kB / 414.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.3042, allocations: 399 kB / 415 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.601e-05/0.3042, allocations: 55.27 kB / 415 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.3043, allocations: 43.94 kB / 415.1 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.3048, allocations: 424.7 kB / 415.5 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3048, allocations: 4 kB / 415.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.3048, allocations: 16 kB / 415.5 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.3049, allocations: 12.44 kB / 415.5 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004191/0.3053, allocations: 269.5 kB / 415.8 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.3067, allocations: 1.686 MB / 417.5 MB, free: 17.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.3072, allocations: 291.9 kB / 417.8 MB, free: 16.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.3074, allocations: 137.4 kB / 417.9 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.353e-05/0.3075, allocations: 16 kB / 417.9 MB, free: 16.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.3078, allocations: 329.1 kB / 418.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.3078, allocations: 0 / 418.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007679/0.3086, allocations: 483.5 kB / 418.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.3087, allocations: 162.2 kB / 418.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.3091, allocations: 0.4894 MB / 419.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.3091, allocations: 45.69 kB / 419.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3092, allocations: 236.6 kB / 419.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.3093, allocations: 82.98 kB / 419.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3094, allocations: 122.2 kB / 419.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.223e-05/0.3095, allocations: 358.7 kB / 420.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.3097, allocations: 121 kB / 420.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.3099, allocations: 266.7 kB / 420.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/0.3104, allocations: 415.1 kB / 421 MB, free: 13.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.3104, allocations: 8.25 kB / 421 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000635/0.311, allocations: 484 kB / 421.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.3111, allocations: 41.69 kB / 421.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.3111, allocations: 4.469 kB / 421.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3111, allocations: 12 kB / 421.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.3112, allocations: 35.86 kB / 421.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.3113, allocations: 11.98 kB / 421.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.3115, allocations: 47.67 kB / 421.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.3115, allocations: 20 kB / 421.6 MB, free: 12.66 MB / 298.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.000214/0.3117, allocations: 264.4 kB / 421.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.3118, allocations: 51.44 kB / 421.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.3122, allocations: 258.3 kB / 422.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3123, allocations: 4 kB / 422.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.3123, allocations: 64 / 422.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3123, allocations: 15.92 kB / 422.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008907/0.3132, allocations: 0.7838 MB / 423 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3132, allocations: 0 / 423 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.3132, allocations: 19.92 kB / 423 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3133, allocations: 0 / 423 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.3133, allocations: 15.94 kB / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3133, allocations: 0 / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3133, allocations: 0 / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009704/0.3143, allocations: 1.266 MB / 424.3 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.3144, allocations: 120.5 kB / 424.4 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/0.3144, allocations: 12 kB / 424.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.3146, allocations: 27.97 kB / 424.4 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3147, allocations: 35.94 kB / 424.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.3148, allocations: 20 kB / 424.5 MB, free: 9.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003115/0.3151, allocations: 331.1 kB / 424.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3151, allocations: 3.938 kB / 424.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005252/0.3156, allocations: 119.9 kB / 424.9 MB, free: 9.184 MB / 298.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: 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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,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.001023/0.3166, allocations: 468.5 kB / 425.4 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005554/0.3172, allocations: 390.9 kB / 425.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3172, allocations: 0.9375 kB / 425.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.3175, allocations: 239.2 kB / 426 MB, free: 8.219 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.318, allocations: 82.44 kB / 426.1 MB, free: 8.137 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.3193, allocations: 1.162 MB / 427.2 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.3196, allocations: 0.8558 MB / 428.1 MB, free: 6.051 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001837/0.3198, allocations: 79.48 kB / 428.2 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.301e-05/0.3199, allocations: 47.36 kB / 428.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3199, allocations: 0 / 428.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of Templates: time 0.008414/0.3283, allocations: 5.335 MB / 433.6 MB, free: 0.6133 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches