Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001502/0.001502, allocations: 109.3 kB / 18.35 MB, free: 4.793 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.001907/0.001907, allocations: 190.9 kB / 19.29 MB, free: 3.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001153, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.08096, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003883/0.08489, allocations: 2.448 MB / 331.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.0869, allocations: 1.244 MB / 332.4 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.08709, allocations: 11.94 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007865/0.08791, allocations: 238.9 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003734/0.08829, allocations: 167.2 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006589/0.08896, allocations: 275.3 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.08947, allocations: 479.8 kB / 333.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003237/0.08981, allocations: 205.8 kB / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.09002, allocations: 195.2 kB / 333.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.09026, allocations: 219 kB / 334.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.09033, allocations: 32 kB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.09057, allocations: 119.9 kB / 334.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.09071, allocations: 127.5 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.0909, allocations: 222.7 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005409/0.09145, allocations: 0.5488 MB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.09146, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09147, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.09148, allocations: 0 / 335.2 MB, free: 13.23 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.001238/0.09273, allocations: 0.8475 MB / 336 MB, free: 12.33 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.09277, allocations: 11.97 kB / 336.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.09289, allocations: 64.22 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005123/0.09341, allocations: 391.1 kB / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-05/0.0935, allocations: 63.25 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.09356, allocations: 39.94 kB / 336.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.09422, allocations: 424.7 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.09425, allocations: 0 / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.09429, allocations: 19.98 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.09432, allocations: 20.42 kB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.09479, allocations: 265.4 kB / 337.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.09658, allocations: 1.666 MB / 339 MB, free: 9.215 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005763/0.09717, allocations: 299.9 kB / 339.3 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.09742, allocations: 138.4 kB / 339.4 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.528e-05/0.09749, allocations: 16.05 kB / 339.4 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.09794, allocations: 324 kB / 339.7 MB, free: 8.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.924e-06/0.09796, allocations: 4 kB / 339.7 MB, free: 8.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009468/0.09891, allocations: 478.5 kB / 340.2 MB, free: 7.895 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.099, allocations: 166.2 kB / 340.4 MB, free: 7.695 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.0995, allocations: 493.2 kB / 340.9 MB, free: 7.207 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.09954, allocations: 41.69 kB / 340.9 MB, free: 7.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.0997, allocations: 232.6 kB / 341.1 MB, free: 6.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.273e-05/0.09978, allocations: 82.92 kB / 341.2 MB, free: 6.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.09993, allocations: 122.2 kB / 341.3 MB, free: 6.723 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1001, allocations: 358.7 kB / 341.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.1003, allocations: 125 kB / 341.8 MB, free: 6.242 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.1006, allocations: 266.7 kB / 342.1 MB, free: 5.922 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.1011, allocations: 422.7 kB / 342.5 MB, free: 5.441 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1012, allocations: 4 kB / 342.5 MB, free: 5.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007193/0.1019, allocations: 474.3 kB / 342.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.1019, allocations: 41.69 kB / 343 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1019, allocations: 4 kB / 343 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.102, allocations: 8 kB / 343 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.1021, allocations: 35.86 kB / 343 MB, free: 4.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.1021, allocations: 8.469 kB / 343 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.1024, allocations: 55.66 kB / 343.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.1024, allocations: 20 kB / 343.1 MB, free: 4.785 MB / 286.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.0002474/0.1027, allocations: 260.5 kB / 343.4 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-05/0.1028, allocations: 47.44 kB / 343.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004839/0.1032, allocations: 265.3 kB / 343.7 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.1033, allocations: 7.984 kB / 343.7 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1033, allocations: 3.938 kB / 343.7 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.1034, allocations: 120.5 kB / 343.8 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.1034, allocations: 12 kB / 343.8 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.1036, allocations: 27.91 kB / 343.8 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.832e-05/0.1037, allocations: 35.95 kB / 343.9 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008387/0.1046, allocations: 0.6799 MB / 344.5 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007508/0.1053, allocations: 0.7324 MB / 345.3 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002706/0.1056, allocations: 172.4 kB / 345.4 MB, free: 2.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000321/0.1059, allocations: 323.1 kB / 345.8 MB, free: 2.031 MB / 286.1 MB Notification: Performance of Backend: time 6.41e-07/0.106, allocations: 0 / 345.8 MB, free: 2.031 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.1078, allocations: 0.7239 MB / 346.5 MB, free: 1.305 MB / 286.1 MB Notification: Performance of SimCode: time 0.001412/0.1092, allocations: 1.209 MB / 347.7 MB, free: 32 kB / 286.1 MB Notification: Performance of Templates: time 0.01064/0.1199, allocations: 5.887 MB / 353.6 MB, free: 10.13 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches