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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 241.4 MB, free: 11.61 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 98.02 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005262/0.0005262, allocations: 8 kB / 352.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3333, allocations: 50.41 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.4455, allocations: 83.94 MB / 486.7 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4458, allocations: 71.97 kB / 486.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02586/0.4717, allocations: 9.258 MB / 496 MB, free: 3.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.4718, allocations: 0 / 496 MB, free: 3.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.966e-05/0.4718, allocations: 15.98 kB / 496 MB, free: 3.051 MB / 362.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.001517/0.4733, allocations: 0.7784 MB / 496.8 MB, free: 2.211 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.4734, allocations: 8.031 kB / 496.8 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.4736, allocations: 64.28 kB / 496.9 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007376/0.4743, allocations: 403.1 kB / 497.3 MB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.289e-05/0.4744, allocations: 55.27 kB / 497.3 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.4745, allocations: 44.31 kB / 497.4 MB, free: 1.602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007667/0.4753, allocations: 433.2 kB / 497.8 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.4753, allocations: 7.938 kB / 497.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.4754, allocations: 16 kB / 497.8 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.707e-05/0.4754, allocations: 12.44 kB / 497.8 MB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005302/0.4759, allocations: 253.5 kB / 498.1 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.4782, allocations: 1.682 MB / 499.7 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005812/0.4788, allocations: 299.9 kB / 0.4883 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.479, allocations: 122.5 kB / 0.4884 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.698e-05/0.4791, allocations: 20.05 kB / 0.4885 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004734/0.4796, allocations: 324.5 kB / 0.4888 GB, free: 14.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.284e-06/0.4796, allocations: 0 / 0.4888 GB, free: 14.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.001014/0.4806, allocations: 489.7 kB / 0.4892 GB, free: 13.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.4807, allocations: 166.2 kB / 0.4894 GB, free: 13.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006143/0.4814, allocations: 489.2 kB / 0.4899 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.4814, allocations: 41.7 kB / 0.4899 GB, free: 13.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.4816, allocations: 224.6 kB / 0.4901 GB, free: 12.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.2e-05/0.4817, allocations: 83.09 kB / 0.4902 GB, free: 12.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.4817, allocations: 8 kB / 0.4902 GB, free: 12.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4819, allocations: 358.8 kB / 0.4905 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.4821, allocations: 113.1 kB / 0.4906 GB, free: 12.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.4825, allocations: 274.6 kB / 0.4909 GB, free: 11.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.4831, allocations: 419.5 kB / 0.4913 GB, free: 11.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.4831, allocations: 0 / 0.4913 GB, free: 11.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000817/0.4839, allocations: 491.6 kB / 0.4918 GB, free: 10.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/0.484, allocations: 37.69 kB / 0.4918 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.484, allocations: 4 kB / 0.4918 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.484, allocations: 8 kB / 0.4918 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.4842, allocations: 43.86 kB / 0.4919 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4842, allocations: 4 kB / 0.4919 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.4845, allocations: 52.03 kB / 0.4919 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.786e-05/0.4846, allocations: 16 kB / 0.4919 GB, free: 10.8 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.0002987/0.4849, allocations: 252.6 kB / 0.4922 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.485, allocations: 47.75 kB / 0.4922 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000762/0.4857, allocations: 427.7 kB / 0.4926 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.4857, allocations: 4 kB / 0.4926 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.4858, allocations: 4 kB / 0.4926 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4858, allocations: 0 / 0.4926 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.487, allocations: 0.7961 MB / 0.4934 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.487, allocations: 7.984 kB / 0.4934 GB, free: 9.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.628e-05/0.4871, allocations: 19.92 kB / 0.4934 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.4871, allocations: 4 kB / 0.4934 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.4871, allocations: 11.98 kB / 0.4935 GB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4871, allocations: 4 kB / 0.4935 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4871, allocations: 3.938 kB / 0.4935 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007403/0.4879, allocations: 0.5174 MB / 0.494 GB, free: 8.598 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.488, allocations: 128.5 kB / 0.4941 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.914e-05/0.4881, allocations: 15.98 kB / 0.4941 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.4883, allocations: 28.08 kB / 0.4941 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.4885, allocations: 51.81 kB / 0.4942 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.4885, allocations: 19.98 kB / 0.4942 GB, free: 8.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003905/0.4889, allocations: 315.1 kB / 0.4945 GB, free: 8.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4889, allocations: 7.938 kB / 0.4945 GB, free: 8.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005263/0.4895, allocations: 116.2 kB / 0.4946 GB, free: 7.914 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.00107/0.4905, allocations: 467.5 kB / 0.4951 GB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007233/0.4913, allocations: 399.5 kB / 0.4954 GB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4913, allocations: 0 / 0.4954 GB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003512/0.4916, allocations: 251.1 kB / 0.4957 GB, free: 6.961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.4923, allocations: 93.56 kB / 0.4958 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.4938, allocations: 0.8741 MB / 0.4966 GB, free: 5.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.4943, allocations: 0.8363 MB / 0.4974 GB, free: 5.098 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.4946, allocations: 83.41 kB / 0.4975 GB, free: 5.012 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.4947, allocations: 43.42 kB / 0.4976 GB, free: 4.969 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4947, allocations: 0 / 0.4976 GB, free: 4.969 MB / 378.7 MB Notification: Performance of Templates: time 0.2268/0.7216, allocations: 5.154 MB / 0.5026 GB, free: 98.57 MB / 378.7 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/jenkins1/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