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.0007265/0.0007265, allocations: 92.94 kB / 17.31 MB, free: 6.535 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.0007709/0.0007708, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.231/1.231, allocations: 223.3 MB / 242.3 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002211/0.0002211, allocations: 11.94 kB / 302.1 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07441/0.07464, allocations: 50.4 MB / 352.5 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002521/0.0772, allocations: 2.116 MB / 354.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.07907, allocations: 1.29 MB / 355.9 MB, free: 72 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.07921, allocations: 11.94 kB / 355.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005798/0.0798, allocations: 203.3 kB / 356.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.08011, allocations: 150.6 kB / 356.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.08066, allocations: 263.5 kB / 356.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004317/0.0811, allocations: 447.8 kB / 356.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.08141, allocations: 201.8 kB / 357.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.08159, allocations: 155.1 kB / 357.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.08178, allocations: 167.1 kB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.08182, allocations: 8 kB / 357.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.08201, allocations: 91.88 kB / 357.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.08213, allocations: 99.59 kB / 357.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.08232, allocations: 204.4 kB / 357.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.08271, allocations: 375.4 kB / 358.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.08272, allocations: 0 / 358.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08273, allocations: 0 / 358.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.08274, allocations: 0 / 358.2 MB, free: 13.72 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.001109/0.08385, allocations: 0.7776 MB / 359 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.933e-05/0.08389, allocations: 8.031 kB / 359 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.08399, allocations: 56.28 kB / 359 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.08446, allocations: 395 kB / 359.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.76e-05/0.08454, allocations: 58.64 kB / 359.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.613e-05/0.0846, allocations: 40 kB / 359.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006454/0.08525, allocations: 428.7 kB / 359.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.08527, allocations: 0 / 359.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.08531, allocations: 19.98 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.08534, allocations: 12.44 kB / 360 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.08582, allocations: 261.5 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.08759, allocations: 1.701 MB / 361.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.08815, allocations: 296 kB / 362.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.08839, allocations: 126.5 kB / 362.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.93e-05/0.08845, allocations: 15.89 kB / 362.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004275/0.08889, allocations: 328.7 kB / 362.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.0889, allocations: 3.938 kB / 362.7 MB, free: 8.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009089/0.08981, allocations: 486.5 kB / 363.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.0899, allocations: 166.2 kB / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004941/0.0904, allocations: 493.3 kB / 363.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.09045, allocations: 37.7 kB / 363.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.0906, allocations: 232.6 kB / 364.1 MB, free: 7.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.09068, allocations: 82.98 kB / 364.2 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.651e-05/0.09078, allocations: 77.67 kB / 364.2 MB, free: 7.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.0909, allocations: 362.7 kB / 364.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.09114, allocations: 124.9 kB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.09147, allocations: 266.7 kB / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005276/0.092, allocations: 418.7 kB / 365.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.09202, allocations: 4 kB / 365.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007454/0.09277, allocations: 486.4 kB / 365.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.09281, allocations: 33.7 kB / 365.9 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.09283, allocations: 4 kB / 365.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.09285, allocations: 11.94 kB / 365.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.09299, allocations: 39.91 kB / 365.9 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.09301, allocations: 11.94 kB / 366 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.09327, allocations: 67.88 kB / 366 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.09331, allocations: 20 kB / 366 MB, free: 5.355 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.000244/0.09356, allocations: 248.6 kB / 366.3 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.09363, allocations: 51.42 kB / 366.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004761/0.09412, allocations: 261.3 kB / 366.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.09414, allocations: 4 kB / 366.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.09415, allocations: 64 / 366.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.09416, allocations: 11.94 kB / 366.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009902/0.09516, allocations: 0.7828 MB / 367.4 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.09517, allocations: 0 / 367.4 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.09524, allocations: 23.86 kB / 367.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.09525, allocations: 0 / 367.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.09528, allocations: 12 kB / 367.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.09529, allocations: 3.984 kB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.0953, allocations: 0 / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006915/0.096, allocations: 0.5137 MB / 367.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.677e-05/0.09609, allocations: 128.4 kB / 368.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.475e-05/0.09617, allocations: 16 kB / 368.1 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.09639, allocations: 23.98 kB / 368.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.09651, allocations: 43.94 kB / 368.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.09655, allocations: 19.98 kB / 368.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000326/0.09688, allocations: 319.1 kB / 368.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09689, allocations: 0 / 368.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004346/0.09733, allocations: 120 kB / 368.6 MB, free: 2.668 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 (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.0009811/0.09832, allocations: 464.7 kB / 369 MB, free: 2.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006378/0.09897, allocations: 394.8 kB / 369.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.09898, allocations: 4 kB / 369.4 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.09933, allocations: 240.1 kB / 369.7 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.0999, allocations: 89.44 kB / 369.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1012, allocations: 0.9613 MB / 370.7 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1148/0.216, allocations: 0.8343 MB / 371.6 MB, free: 23.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.2162, allocations: 44.84 kB / 371.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2162, allocations: 0.7812 kB / 371.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of Templates: time 0.008971/0.2252, allocations: 6.246 MB / 377.8 MB, free: 23.21 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/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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches