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.001069/0.001069, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.58 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1061, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004835/0.111, allocations: 2.476 MB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.1136, allocations: 1.476 MB / 362.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.1139, allocations: 7.938 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008025/0.1147, allocations: 242.5 kB / 363.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000482/0.1152, allocations: 195 kB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006804/0.1159, allocations: 267.3 kB / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1164, allocations: 491.7 kB / 364 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000433/0.1169, allocations: 217.8 kB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.1171, allocations: 191.2 kB / 364.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.1174, allocations: 215 kB / 364.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.1174, allocations: 36 kB / 364.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.1177, allocations: 107.9 kB / 364.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1178, allocations: 135.5 kB / 364.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.118, allocations: 222.7 kB / 365.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006079/0.1187, allocations: 0.5604 MB / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1187, allocations: 0 / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1187, allocations: 0 / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.1187, 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.001352/0.1201, allocations: 0.8514 MB / 366.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1201, allocations: 12.03 kB / 366.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.1204, allocations: 64.28 kB / 366.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005462/0.1209, allocations: 395 kB / 367 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.122e-05/0.121, allocations: 59.27 kB / 367.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.1211, allocations: 43.92 kB / 367.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/0.1218, allocations: 436.6 kB / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1218, allocations: 0 / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.1218, allocations: 12 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.1219, allocations: 12.44 kB / 367.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.1223, allocations: 277.4 kB / 367.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.1243, allocations: 1.662 MB / 369.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005718/0.1248, allocations: 295.9 kB / 369.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.1251, allocations: 138.5 kB / 369.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-05/0.1252, allocations: 4 kB / 369.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004591/0.1256, allocations: 323.7 kB / 370.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.216e-06/0.1256, allocations: 4 kB / 370.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009353/0.1266, allocations: 482.1 kB / 370.7 MB, free: 1.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.242e-05/0.1267, allocations: 162.2 kB / 370.9 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005122/0.1272, allocations: 0.4894 MB / 371.3 MB, free: 500 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.1273, allocations: 45.69 kB / 371.4 MB, free: 448 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.1274, allocations: 224.6 kB / 371.6 MB, free: 220 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.585e-05/0.1275, allocations: 90.97 kB / 371.7 MB, free: 128 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.1277, allocations: 114.2 kB / 371.8 MB, free: 8 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1742/0.3019, allocations: 365.7 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.3023, allocations: 115.1 kB / 372.3 MB, free: 20 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003724/0.3027, allocations: 264.9 kB / 372.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.3032, allocations: 403.2 kB / 372.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3033, allocations: 1.438 kB / 372.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008716/0.3041, allocations: 467.3 kB / 373.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/0.3042, allocations: 36.47 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3042, allocations: 6.109 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/0.3043, allocations: 7.031 kB / 373.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.3044, allocations: 44.02 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.3044, allocations: 10.95 kB / 373.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3047, allocations: 55.53 kB / 373.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.3047, allocations: 19.59 kB / 373.6 MB, free: 19.5 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.0003065/0.305, allocations: 254.2 kB / 373.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.083e-05/0.3051, allocations: 43.67 kB / 373.9 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004681/0.3056, allocations: 239.7 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3056, allocations: 3.938 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3056, allocations: 7.547 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3057, allocations: 2.297 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.3067, allocations: 0.7377 MB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3067, allocations: 0.6094 kB / 374.8 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.3068, allocations: 16.75 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3068, allocations: 2.812 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.3068, allocations: 15.3 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.3068, allocations: 2.594 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3068, allocations: 0.625 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.3076, allocations: 494.1 kB / 375.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.866e-05/0.3077, allocations: 123.9 kB / 375.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.81e-05/0.3078, allocations: 14.19 kB / 375.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.308, allocations: 22.52 kB / 375.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3081, allocations: 52.94 kB / 375.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.3082, allocations: 17.19 kB / 375.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003516/0.3085, allocations: 330.5 kB / 375.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3086, allocations: 1.375 kB / 375.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.309, allocations: 112.5 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.0009086/0.3099, allocations: 440.4 kB / 376.4 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006577/0.3106, allocations: 405.4 kB / 376.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3106, allocations: 1.281 kB / 376.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.3109, allocations: 226 kB / 377.1 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.3115, allocations: 99.61 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.001159/0.3126, allocations: 0.7748 MB / 377.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.3129, allocations: 0.8425 MB / 378.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.3131, allocations: 68.11 kB / 378.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.3132, allocations: 46.05 kB / 378.9 MB, free: 16.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3132, allocations: 0 / 378.9 MB, free: 16.8 MB / 302.1 MB Notification: Performance of Templates: time 0.01015/0.3234, allocations: 5.231 MB / 384.1 MB, free: 16.12 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 gbode -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