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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001145, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001138, allocations: 59.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2844, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003732/0.2882, allocations: 2.485 MB / 411.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.2905, allocations: 1.465 MB / 413.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.2907, allocations: 7.938 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006871/0.2914, allocations: 242.9 kB / 413.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004825/0.2919, allocations: 203 kB / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005977/0.2925, allocations: 263 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004513/0.293, allocations: 495.7 kB / 414.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000301/0.2933, allocations: 209.8 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.2935, allocations: 195.2 kB / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.2937, allocations: 211.1 kB / 415 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.2938, allocations: 36 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.294, allocations: 123.8 kB / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.2941, allocations: 127.5 kB / 415.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.2943, allocations: 214.7 kB / 415.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005838/0.2949, allocations: 0.5615 MB / 416 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2949, allocations: 4 kB / 416 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.295, allocations: 4 kB / 416 MB, free: 10.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.295, allocations: 0 / 416 MB, free: 10.74 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.001258/0.2962, allocations: 0.8515 MB / 416.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.2963, allocations: 11.97 kB / 416.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.2965, allocations: 72.14 kB / 417 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.297, allocations: 403 kB / 417.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.007e-05/0.2971, allocations: 59.25 kB / 417.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.2971, allocations: 43.94 kB / 417.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/0.2978, allocations: 424.7 kB / 417.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2978, allocations: 4 kB / 417.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.2978, allocations: 15.98 kB / 417.9 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.2979, allocations: 12.44 kB / 417.9 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004649/0.2983, allocations: 265.4 kB / 418.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.3001, allocations: 1.674 MB / 419.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.3007, allocations: 291.8 kB / 420.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002227/0.3009, allocations: 130.5 kB / 420.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.301, allocations: 15.98 kB / 420.3 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004501/0.3014, allocations: 328 kB / 420.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.3015, allocations: 0 / 420.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008885/0.3024, allocations: 469.9 kB / 421.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.3024, allocations: 162.2 kB / 421.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/0.3029, allocations: 0.4934 MB / 421.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.303, allocations: 37.7 kB / 421.7 MB, free: 4.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.3031, allocations: 240.5 kB / 422 MB, free: 4.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.617e-05/0.3032, allocations: 82.91 kB / 422.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3033, allocations: 114.2 kB / 422.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3035, allocations: 362.7 kB / 422.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.3037, allocations: 121.1 kB / 422.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.304, allocations: 266.7 kB / 422.9 MB, free: 3.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004949/0.3045, allocations: 402.5 kB / 423.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3046, allocations: 0 / 423.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007187/0.3053, allocations: 470.8 kB / 423.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.3053, allocations: 33.7 kB / 423.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.3053, allocations: 7.984 kB / 423.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3054, allocations: 8 kB / 423.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3055, allocations: 40.17 kB / 423.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.3055, allocations: 8 kB / 423.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.3057, allocations: 55.56 kB / 423.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.3058, allocations: 24 kB / 423.9 MB, free: 2.309 MB / 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.0002454/0.306, allocations: 256.6 kB / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.3061, allocations: 51.42 kB / 424.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004152/0.3065, allocations: 225.1 kB / 424.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3066, allocations: 11.88 kB / 424.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.3066, allocations: 7.984 kB / 424.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3066, allocations: 4 kB / 424.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000922/0.3075, allocations: 0.7404 MB / 425.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3075, allocations: 0 / 425.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.302e-05/0.3076, allocations: 11.98 kB / 425.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3076, allocations: 4 kB / 425.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.3076, allocations: 11.98 kB / 425.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3076, allocations: 7.938 kB / 425.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3077, allocations: 0 / 425.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000682/0.3084, allocations: 0.4886 MB / 425.7 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-05/0.3085, allocations: 112.6 kB / 425.8 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.3085, allocations: 19.98 kB / 425.9 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.3087, allocations: 19.98 kB / 425.9 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3089, allocations: 47.88 kB / 425.9 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.3089, allocations: 16 kB / 425.9 MB, free: 164 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003813/0.3093, allocations: 331.1 kB / 426.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3093, allocations: 0 / 426.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.3098, allocations: 115.9 kB / 426.4 MB, free: 15.72 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,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 (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.001087/0.3108, allocations: 443.9 kB / 426.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006416/0.3115, allocations: 389.5 kB / 427.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3115, allocations: 0 / 427.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003509/0.3119, allocations: 239.7 kB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.3124, allocations: 96.59 kB / 427.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.3137, allocations: 0.7848 MB / 428.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.3142, allocations: 0.8317 MB / 429.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3144, allocations: 79.23 kB / 429.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.392e-05/0.3145, allocations: 39.44 kB / 429.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3145, allocations: 0 / 429.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of Templates: time 0.01027/0.3248, allocations: 5.266 MB / 434.5 MB, free: 7.652 MB / 350.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches