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.001419/0.001419, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.19 kB / 308.3 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004531/0.1117, allocations: 2.472 MB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002628/0.1143, allocations: 1.481 MB / 362.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.1145, allocations: 7.938 kB / 362.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008279/0.1154, allocations: 234.9 kB / 363.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004862/0.1159, allocations: 199 kB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.1165, allocations: 270.8 kB / 363.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005637/0.1171, allocations: 483.8 kB / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003542/0.1175, allocations: 217.8 kB / 364.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.1177, allocations: 191.2 kB / 364.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.1179, allocations: 222.9 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.118, allocations: 36 kB / 364.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.1182, allocations: 119.9 kB / 364.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.1184, allocations: 119.6 kB / 364.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.1186, allocations: 222.7 kB / 365.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006164/0.1192, allocations: 0.5526 MB / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1192, allocations: 0 / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1192, allocations: 0 / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.1192, allocations: 0 / 365.7 MB, free: 6.516 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.001444/0.1207, allocations: 0.8708 MB / 366.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.1207, allocations: 8.031 kB / 366.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002714/0.121, allocations: 60.28 kB / 366.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005463/0.1216, allocations: 391.1 kB / 367 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.906e-05/0.1217, allocations: 67.2 kB / 367 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.1217, allocations: 47.92 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.1224, allocations: 420.7 kB / 367.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1224, allocations: 3.938 kB / 367.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/0.1225, allocations: 23.98 kB / 367.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.1225, allocations: 12.44 kB / 367.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004825/0.123, allocations: 261.5 kB / 367.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.125, allocations: 1.674 MB / 369.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/0.1255, allocations: 292 kB / 369.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.1258, allocations: 126.5 kB / 369.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.253e-05/0.1258, allocations: 8 kB / 369.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004379/0.1263, allocations: 331.7 kB / 370.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.904e-06/0.1263, allocations: 0 / 370.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008778/0.1272, allocations: 469.6 kB / 370.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1273, allocations: 174.1 kB / 370.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.1278, allocations: 0.4933 MB / 371.3 MB, free: 488 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.1279, allocations: 41.7 kB / 371.4 MB, free: 440 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.1281, allocations: 240.5 kB / 371.6 MB, free: 196 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.924e-05/0.1282, allocations: 79 kB / 371.7 MB, free: 116 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1995/0.3277, allocations: 116.7 kB / 371.8 MB, free: 20.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.3279, allocations: 355.5 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.3283, allocations: 116.4 kB / 372.3 MB, free: 20 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.3288, allocations: 264.7 kB / 372.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006319/0.3294, allocations: 398.9 kB / 372.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.3294, allocations: 4.938 kB / 372.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009802/0.3304, allocations: 470.2 kB / 373.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.3305, allocations: 36.59 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.3305, allocations: 4.844 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-05/0.3305, allocations: 8.531 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.3307, allocations: 43.25 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.3307, allocations: 7.594 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.3311, allocations: 52.39 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.3312, allocations: 23.34 kB / 373.6 MB, free: 19.51 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.0003857/0.3316, allocations: 258.8 kB / 373.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.3317, allocations: 46.64 kB / 373.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005069/0.3322, allocations: 229.2 kB / 374.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3322, allocations: 4.062 kB / 374.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.3322, allocations: 5.375 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3323, allocations: 3.891 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.3337, allocations: 0.7459 MB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3337, allocations: 1.094 kB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.509e-05/0.3338, allocations: 19.19 kB / 374.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.3338, allocations: 2.188 kB / 374.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/0.3338, allocations: 15.23 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/0.3338, allocations: 4.844 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3338, allocations: 0.9688 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009722/0.3348, allocations: 492.5 kB / 375.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.335, allocations: 123.3 kB / 375.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.901e-05/0.3351, allocations: 15.12 kB / 375.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.3354, allocations: 25.05 kB / 375.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.3356, allocations: 39.81 kB / 375.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.3356, allocations: 18.09 kB / 375.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005086/0.3361, allocations: 330.8 kB / 375.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3361, allocations: 0 / 375.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006846/0.3368, allocations: 113.1 kB / 376 MB, free: 18.43 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.001213/0.3381, allocations: 453.8 kB / 376.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007835/0.3389, allocations: 400.1 kB / 376.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3389, allocations: 0 / 376.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.3392, allocations: 234.9 kB / 377.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.3399, allocations: 89.64 kB / 377.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3414, allocations: 0.776 MB / 377.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.3418, allocations: 0.8385 MB / 378.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002364/0.342, allocations: 76.47 kB / 378.8 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3421, allocations: 36.84 kB / 378.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3422, allocations: 0 / 378.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01243/0.3546, allocations: 5.244 MB / 384.1 MB, free: 16.14 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches