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.001321/0.001321, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.00193, allocations: 64.33 kB / 307 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 50.54 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004331/0.1144, allocations: 2.484 MB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.1174, allocations: 1.465 MB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.1177, allocations: 15.94 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008199/0.1186, allocations: 230.9 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005192/0.1191, allocations: 207 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006701/0.1198, allocations: 255.4 kB / 362.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.1203, allocations: 483.7 kB / 362.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003553/0.1207, allocations: 213.8 kB / 362.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1209, allocations: 195.2 kB / 363 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.1212, allocations: 215 kB / 363.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.1212, allocations: 36 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002399/0.1215, allocations: 115.9 kB / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1216, allocations: 131.5 kB / 363.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.1219, allocations: 222.7 kB / 363.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006317/0.1225, allocations: 0.522 MB / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1225, allocations: 7.984 kB / 364.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1225, allocations: 0 / 364.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.1226, allocations: 0 / 364.3 MB, free: 7.277 MB / 302.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.001649/0.1242, allocations: 0.8552 MB / 365.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.1243, allocations: 8.031 kB / 365.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.1245, allocations: 68.27 kB / 365.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005409/0.1251, allocations: 387 kB / 365.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.954e-05/0.1252, allocations: 63.27 kB / 365.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.1253, allocations: 39.94 kB / 365.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007118/0.126, allocations: 428.7 kB / 366.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.126, allocations: 3.938 kB / 366.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.126, allocations: 19.98 kB / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.913e-05/0.1261, allocations: 12.44 kB / 366.1 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005196/0.1266, allocations: 269.5 kB / 366.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.1287, allocations: 1.674 MB / 368.1 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006128/0.1293, allocations: 307.8 kB / 368.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.1296, allocations: 134.5 kB / 368.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.1297, allocations: 11.94 kB / 368.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005057/0.1302, allocations: 319.7 kB / 368.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.084e-06/0.1302, allocations: 0 / 368.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001047/0.1312, allocations: 473.9 kB / 369.3 MB, free: 1.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.1314, allocations: 166.2 kB / 369.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006103/0.132, allocations: 0.4933 MB / 369.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.05e-05/0.1321, allocations: 45.69 kB / 370 MB, free: 1.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.1323, allocations: 232.6 kB / 370.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.522e-05/0.1324, allocations: 82.98 kB / 370.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.1325, allocations: 118.2 kB / 370.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.1327, allocations: 366.7 kB / 370.8 MB, free: 396 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.133, allocations: 109.1 kB / 370.9 MB, free: 288 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1923/0.3253, allocations: 264.5 kB / 371.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008755/0.3263, allocations: 401.5 kB / 371.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/0.3263, allocations: 1.469 kB / 371.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001073/0.3274, allocations: 474.9 kB / 372 MB, free: 19.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.3274, allocations: 38.64 kB / 372 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.3274, allocations: 3.844 kB / 372 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.386e-05/0.3275, allocations: 6.844 kB / 372 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.3277, allocations: 39.55 kB / 372.1 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.3277, allocations: 11.27 kB / 372.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.328, allocations: 53.47 kB / 372.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.328, allocations: 20.33 kB / 372.2 MB, free: 19.52 MB / 302.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.0003703/0.3284, allocations: 253.8 kB / 372.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.295e-05/0.3285, allocations: 47.62 kB / 372.5 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000475/0.329, allocations: 235 kB / 372.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.329, allocations: 8.094 kB / 372.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.329, allocations: 0.8438 kB / 372.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.329, allocations: 6.516 kB / 372.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.3302, allocations: 0.7378 MB / 373.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3302, allocations: 1.562 kB / 373.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.3303, allocations: 21.81 kB / 373.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3303, allocations: 2.062 kB / 373.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.3303, allocations: 10.7 kB / 373.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3303, allocations: 5.844 kB / 373.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3303, allocations: 2.156 kB / 373.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007349/0.3311, allocations: 493.6 kB / 374 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.3312, allocations: 118.2 kB / 374.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/0.3312, allocations: 20.75 kB / 374.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3315, allocations: 25.36 kB / 374.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.3316, allocations: 41.31 kB / 374.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.3317, allocations: 19.3 kB / 374.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004399/0.3321, allocations: 327.6 kB / 374.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3321, allocations: 0.5312 kB / 374.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005292/0.3327, allocations: 116.8 kB / 374.6 MB, free: 18.59 MB / 302.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.001571/0.3342, allocations: 443 kB / 375 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009127/0.3352, allocations: 424 kB / 375.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3352, allocations: 1.25 kB / 375.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.3355, allocations: 234 kB / 375.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005893/0.3361, allocations: 93.53 kB / 375.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3376, allocations: 0.7936 MB / 376.6 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.338, allocations: 0.8339 MB / 377.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.3382, allocations: 72.31 kB / 377.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.3383, allocations: 40.39 kB / 377.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3383, allocations: 5.281 kB / 377.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01308/0.3514, allocations: 5.241 MB / 382.8 MB, free: 16.3 MB / 302.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.1.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