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.0009663/0.0009665, allocations: 90.48 kB / 16.31 MB, free: 6.453 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.001086/0.001086, allocations: 180.7 kB / 17.21 MB, free: 6.328 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.546/1.546, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002825, allocations: 6.344 kB / 300.8 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1564, allocations: 50.43 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003075/0.1596, allocations: 2.037 MB / 353.3 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.162, allocations: 1.232 MB / 354.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003445/0.1624, allocations: 11.94 kB / 354.5 MB, free: 8.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007629/0.1631, allocations: 203.3 kB / 354.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.1636, allocations: 139.4 kB / 354.9 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000807/0.1644, allocations: 238.3 kB / 355.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005715/0.165, allocations: 415.8 kB / 355.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003385/0.1653, allocations: 150.9 kB / 355.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.1656, allocations: 147.3 kB / 355.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.1659, allocations: 171.1 kB / 355.9 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.166, allocations: 12 kB / 356 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.1662, allocations: 83.89 kB / 356 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.1664, allocations: 91.66 kB / 356.1 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1665, allocations: 101.5 kB / 356.2 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004906/0.167, allocations: 375 kB / 356.6 MB, free: 6.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.167, allocations: 3.938 kB / 356.6 MB, free: 6.305 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.167, allocations: 0 / 356.6 MB, free: 6.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.167, allocations: 0 / 356.6 MB, free: 6.305 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.001519/0.1686, allocations: 0.7697 MB / 357.4 MB, free: 5.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1686, allocations: 8.031 kB / 357.4 MB, free: 5.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.1688, allocations: 59.3 kB / 357.4 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006002/0.1694, allocations: 378 kB / 357.8 MB, free: 4.996 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.149e-05/0.1695, allocations: 62.62 kB / 357.9 MB, free: 4.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.1696, allocations: 40 kB / 357.9 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000739/0.1703, allocations: 420.7 kB / 358.3 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.1704, allocations: 7.922 kB / 358.3 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.1704, allocations: 16 kB / 358.3 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.1705, allocations: 24.38 kB / 358.4 MB, free: 4.395 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005057/0.171, allocations: 265.5 kB / 358.6 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002119/0.1731, allocations: 1.69 MB / 360.3 MB, free: 2.359 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.1737, allocations: 292 kB / 360.6 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.1739, allocations: 134.5 kB / 360.7 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.364e-05/0.174, allocations: 12.05 kB / 360.7 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004636/0.1745, allocations: 328.5 kB / 361.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.1745, allocations: 4 kB / 361.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.00105/0.1755, allocations: 481.9 kB / 361.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.1757, allocations: 166.1 kB / 361.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/0.1762, allocations: 493.2 kB / 362.2 MB, free: 368 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.1763, allocations: 37.7 kB / 362.2 MB, free: 324 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.1765, allocations: 228.6 kB / 362.4 MB, free: 92 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.368e-05/0.1766, allocations: 90.98 kB / 362.5 MB, free: 0 / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.1767, allocations: 4.078 kB / 362.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1769, allocations: 362.7 kB / 362.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/0.1773, allocations: 117.1 kB / 363 MB, free: 15.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.1776, allocations: 265.3 kB / 363.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.178, allocations: 166 kB / 363.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.178, allocations: 8 kB / 363.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008223/0.1788, allocations: 478.1 kB / 363.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.1789, allocations: 36.05 kB / 363.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1789, allocations: 8 kB / 363.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1789, allocations: 8 kB / 363.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1791, allocations: 47.84 kB / 364 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.1791, allocations: 7.938 kB / 364 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.1793, allocations: 67.45 kB / 364.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.1794, allocations: 23.98 kB / 364.1 MB, free: 14.34 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,$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,sampleTriggerSet.y,sampleTriggerReset.y,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.0002765/0.1797, allocations: 248.8 kB / 364.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.984e-05/0.1798, allocations: 43.53 kB / 364.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004995/0.1803, allocations: 273.4 kB / 364.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.1803, allocations: 4 kB / 364.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.1803, allocations: 4 kB / 364.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.1803, allocations: 0 / 364.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.1815, allocations: 0.7816 MB / 365.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1815, allocations: 0 / 365.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.1816, allocations: 19.92 kB / 365.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.1816, allocations: 4 kB / 365.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.1817, allocations: 12 kB / 365.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.1817, allocations: 7.953 kB / 365.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1817, allocations: 0 / 365.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/0.1825, allocations: 0.5133 MB / 366 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.1826, allocations: 124.5 kB / 366.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.534e-05/0.1827, allocations: 19.98 kB / 366.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.1829, allocations: 23.98 kB / 366.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.1831, allocations: 39.89 kB / 366.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.1831, allocations: 23.98 kB / 366.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.1835, allocations: 315.1 kB / 366.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1835, allocations: 4 kB / 366.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005554/0.1841, allocations: 127.9 kB / 366.7 MB, free: 11.66 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 (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.001279/0.1854, allocations: 452.2 kB / 367.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00074/0.1861, allocations: 403.4 kB / 367.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1861, allocations: 0 / 367.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003506/0.1865, allocations: 235.2 kB / 367.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/0.187, allocations: 82.06 kB / 367.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.1886, allocations: 0.8699 MB / 368.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.1891, allocations: 0.8431 MB / 369.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002577/0.1894, allocations: 79.5 kB / 369.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.1895, allocations: 39.42 kB / 369.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of SimCode: time 1.883e-06/0.1895, allocations: 0 / 369.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of Templates: time 0.01147/0.201, allocations: 4.924 MB / 374.6 MB, free: 3.871 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/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