Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001304, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 13.59 kB / 300.7 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 50.41 MB / 351.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002843/0.1108, allocations: 2.034 MB / 353.2 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.1128, allocations: 1.22 MB / 354.4 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.113, allocations: 11.94 kB / 354.4 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00058/0.1136, allocations: 187.3 kB / 354.6 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.1139, allocations: 139.7 kB / 354.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.1146, allocations: 231.2 kB / 354.9 MB, free: 7.598 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.1149, allocations: 296.3 kB / 355.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003067/0.1152, allocations: 162.6 kB / 355.4 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1154, allocations: 143.4 kB / 355.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.1156, allocations: 163.2 kB / 355.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.1157, allocations: 8 kB / 355.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.1159, allocations: 71.89 kB / 355.8 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.116, allocations: 95.66 kB / 355.9 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1161, allocations: 97.39 kB / 355.9 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.1165, allocations: 379.1 kB / 356.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.1165, allocations: 4 kB / 356.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1165, allocations: 0 / 356.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1165, allocations: 0 / 356.3 MB, free: 6.184 MB / 286.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.001245/0.1178, allocations: 0.7618 MB / 357.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1178, allocations: 12.02 kB / 357.1 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.1179, allocations: 59.3 kB / 357.2 MB, free: 5.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.1185, allocations: 381.9 kB / 357.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.135e-05/0.1185, allocations: 54.7 kB / 357.6 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.1186, allocations: 40 kB / 357.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.1192, allocations: 424.7 kB / 358 MB, free: 4.324 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1192, allocations: 0 / 358 MB, free: 4.324 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.1193, allocations: 23.97 kB / 358.1 MB, free: 4.301 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.1193, allocations: 16.39 kB / 358.1 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000455/0.1198, allocations: 265.5 kB / 358.3 MB, free: 4.023 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.1217, allocations: 1.694 MB / 360 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005757/0.1223, allocations: 296 kB / 360.3 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.318e-05/0.1224, allocations: 12.22 kB / 360.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000451/0.1228, allocations: 320.5 kB / 360.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.555e-06/0.1229, allocations: 0 / 360.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009492/0.1238, allocations: 0.5547 MB / 361.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/0.1239, allocations: 174.1 kB / 361.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.1245, allocations: 489.2 kB / 361.8 MB, free: 296 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.1245, allocations: 37.7 kB / 361.9 MB, free: 252 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.1247, allocations: 228.6 kB / 362.1 MB, free: 20 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.1248, allocations: 87.16 kB / 362.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.1248, allocations: 8 kB / 362.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.125, allocations: 362.6 kB / 362.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1252, allocations: 117.1 kB / 362.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.1255, allocations: 262.7 kB / 362.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.1257, allocations: 162.2 kB / 363.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1258, allocations: 0 / 363.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000712/0.1265, allocations: 494.1 kB / 363.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.1265, allocations: 37.64 kB / 363.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1265, allocations: 4 kB / 363.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1266, allocations: 8 kB / 363.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.1267, allocations: 39.91 kB / 363.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.1267, allocations: 11.94 kB / 363.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.127, allocations: 60.05 kB / 363.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.127, allocations: 27.98 kB / 363.7 MB, free: 14.28 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.1273, allocations: 244.6 kB / 364 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.1274, allocations: 47.44 kB / 364 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000666/0.128, allocations: 269.1 kB / 364.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.1281, allocations: 4 kB / 364.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.1281, allocations: 4 kB / 364.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.1281, allocations: 4.047 kB / 364.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.1292, allocations: 0.7856 MB / 365.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.1292, allocations: 4 kB / 365.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.445e-05/0.1293, allocations: 15.92 kB / 365.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.1293, allocations: 4 kB / 365.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.1293, allocations: 8 kB / 365.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.1293, allocations: 7.953 kB / 365.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1293, allocations: 0 / 365.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006843/0.13, allocations: 0.5441 MB / 365.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.1301, allocations: 124.4 kB / 365.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.632e-05/0.1302, allocations: 11.98 kB / 365.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1304, allocations: 31.98 kB / 365.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.1306, allocations: 39.94 kB / 365.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.4e-05/0.1306, allocations: 19.98 kB / 365.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003333/0.1309, allocations: 319.1 kB / 366.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 366.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004342/0.1314, allocations: 119.7 kB / 366.3 MB, free: 11.57 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009532/0.1323, allocations: 457.1 kB / 366.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006279/0.133, allocations: 404.2 kB / 367.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.133, allocations: 4.062 kB / 367.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003221/0.1333, allocations: 239.3 kB / 367.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.1338, allocations: 76.14 kB / 367.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.1351, allocations: 0.8815 MB / 368.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.1355, allocations: 0.8481 MB / 369.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.1357, allocations: 83.44 kB / 369.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.626e-05/0.1358, allocations: 43.42 kB / 369.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1358, allocations: 0 / 369.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Templates: time 0.009043/0.1448, allocations: 4.903 MB / 374.2 MB, free: 3.762 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches