Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009852/0.0009893, allocations: 198.9 kB / 18.06 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007093/0.0007095, allocations: 93.88 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001959/0.000196, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1779, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08979/0.2677, allocations: 85.06 MB / 493.7 MB, free: 6.512 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.268, allocations: 71.97 kB / 493.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02609/0.2941, allocations: 10.05 MB / 0.492 GB, free: 12.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2941, allocations: 0 / 0.492 GB, free: 12.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.064e-05/0.2941, allocations: 19.94 kB / 0.492 GB, free: 12.36 MB / 378.7 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.001114/0.2953, allocations: 0.8095 MB / 0.4928 GB, free: 11.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2953, allocations: 12.03 kB / 0.4928 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.2954, allocations: 56.28 kB / 0.4929 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.296, allocations: 403.1 kB / 0.4933 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.2961, allocations: 63.25 kB / 0.4933 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.2961, allocations: 36.38 kB / 0.4934 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.2967, allocations: 435.8 kB / 0.4938 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2968, allocations: 7.875 kB / 0.4938 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.2968, allocations: 16 kB / 0.4938 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.2968, allocations: 12.44 kB / 0.4938 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004972/0.2973, allocations: 257.5 kB / 0.4941 GB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.2991, allocations: 1.678 MB / 0.4957 GB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005437/0.2997, allocations: 292 kB / 0.496 GB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.2999, allocations: 126.5 kB / 0.4961 GB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.3, allocations: 12.06 kB / 0.4961 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004152/0.3004, allocations: 327.9 kB / 0.4964 GB, free: 7.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.375e-06/0.3004, allocations: 3.938 kB / 0.4964 GB, free: 7.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009208/0.3013, allocations: 489.8 kB / 0.4969 GB, free: 7.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.3014, allocations: 166.1 kB / 0.4971 GB, free: 6.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005403/0.302, allocations: 0.4895 MB / 0.4975 GB, free: 6.367 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.302, allocations: 41.69 kB / 0.4976 GB, free: 6.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.3022, allocations: 232.6 kB / 0.4978 GB, free: 6.086 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.3023, allocations: 87.03 kB / 0.4979 GB, free: 6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.3023, allocations: 8 kB / 0.4979 GB, free: 5.992 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3024, allocations: 358.8 kB / 0.4982 GB, free: 5.633 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.3027, allocations: 113.1 kB / 0.4983 GB, free: 5.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.303, allocations: 270.7 kB / 0.4986 GB, free: 5.199 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.3035, allocations: 414.6 kB / 0.499 GB, free: 4.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3035, allocations: 0 / 0.499 GB, free: 4.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007221/0.3042, allocations: 482.5 kB / 0.4995 GB, free: 4.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.3043, allocations: 37.69 kB / 0.4995 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3043, allocations: 4.469 kB / 0.4995 GB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.3043, allocations: 8 kB / 0.4995 GB, free: 4.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3045, allocations: 43.86 kB / 0.4996 GB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.3045, allocations: 15.92 kB / 0.4996 GB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.3047, allocations: 39.83 kB / 0.4996 GB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/0.3048, allocations: 24.31 kB / 0.4996 GB, free: 4.07 MB / 378.7 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,rSFlipFlop.S,rSFlipFlop.R,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.0002596/0.305, allocations: 264.5 kB / 0.4999 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.546e-05/0.3051, allocations: 47.44 kB / 0.4999 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008265/0.3059, allocations: 412.1 kB / 0.5003 GB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.306, allocations: 4 kB / 0.5003 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.306, allocations: 4 kB / 0.5003 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.306, allocations: 4 kB / 0.5003 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.3073, allocations: 0.8054 MB / 0.5011 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3073, allocations: 0 / 0.5011 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.3074, allocations: 15.92 kB / 0.5011 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3074, allocations: 8 kB / 0.5011 GB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.3074, allocations: 12 kB / 0.5012 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3074, allocations: 4 kB / 0.5012 GB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3074, allocations: 3.938 kB / 0.5012 GB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008352/0.3083, allocations: 0.5219 MB / 0.5017 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.3084, allocations: 132.5 kB / 0.5018 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.998e-05/0.3085, allocations: 16 kB / 0.5018 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.3088, allocations: 27.97 kB / 0.5018 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3089, allocations: 39.83 kB / 0.5019 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.3089, allocations: 23.98 kB / 0.5019 GB, free: 1.621 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004442/0.3094, allocations: 323.1 kB / 0.5022 GB, free: 1.305 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3094, allocations: 4.094 kB / 0.5022 GB, free: 1.301 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005686/0.31, allocations: 124.2 kB / 0.5023 GB, free: 1.18 MB / 378.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.0009508/0.3109, allocations: 453.8 kB / 0.5028 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006573/0.3116, allocations: 411.2 kB / 0.5032 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3116, allocations: 0 / 0.5032 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.312, allocations: 247.2 kB / 0.5034 GB, free: 208 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.3125, allocations: 90.31 kB / 0.5035 GB, free: 116 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1502/0.4627, allocations: 0.9217 MB / 0.5044 GB, free: 93.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.4631, allocations: 0.8419 MB / 0.5052 GB, free: 93.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.4632, allocations: 46.12 kB / 0.5052 GB, free: 93.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.4632, allocations: 0 / 0.5052 GB, free: 93.04 MB / 378.7 MB Notification: Performance of Templates: time 0.008495/0.4718, allocations: 6.407 MB / 0.5115 GB, free: 92.64 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches