Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 110.7 kB / 17.16 MB, free: 6.324 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.001789/0.001789, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.27/2.27, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.7 kB / 300.6 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1524, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.004277/0.1568, allocations: 1.608 MB / 351.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003246/0.1601, allocations: 1.497 MB / 353.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.482e-05/0.1602, allocations: 0 / 353.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.1603, allocations: 11.88 kB / 353.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.65e-05/0.1605, allocations: 19.86 kB / 353.2 MB, free: 1.684 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.1615, allocations: 307.3 kB / 353.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.1618, allocations: 123.6 kB / 353.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.506e-05/0.1618, allocations: 5.5 kB / 353.6 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.318e-05/0.162, allocations: 59.7 kB / 353.7 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007966/0.1628, allocations: 78.64 kB / 353.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.426e-05/0.1628, allocations: 4 kB / 353.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008366/0.1636, allocations: 447.1 kB / 354.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.1637, allocations: 35.78 kB / 354.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.855e-05/0.1638, allocations: 55.66 kB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.1642, allocations: 279.7 kB / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.257e-06/0.1643, allocations: 0 / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1643, allocations: 3.938 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1643, allocations: 0 / 354.6 MB, free: 320 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001056/0.1653, allocations: 0.5103 MB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1654, allocations: 8.031 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.1657, allocations: 36.72 kB / 355.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1659, allocations: 205.8 kB / 355.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.1659, allocations: 7.938 kB / 355.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.166, allocations: 12 kB / 355.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.1663, allocations: 124.1 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1663, allocations: 0 / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1663, allocations: 0 / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.1663, allocations: 4 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.1666, allocations: 67.89 kB / 355.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008708/0.1674, allocations: 0.5555 MB / 356.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.1679, allocations: 151.7 kB / 356.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.168, allocations: 66.61 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.1681, allocations: 4 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.1684, allocations: 152.5 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.613e-06/0.1684, allocations: 0 / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006423/0.1691, allocations: 257.4 kB / 356.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001991/0.1693, allocations: 122.8 kB / 356.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1695, allocations: 199 kB / 357 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.1696, allocations: 49.69 kB / 357.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.1697, allocations: 108.5 kB / 357.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.1697, allocations: 43.53 kB / 357.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.1698, allocations: 53.83 kB / 357.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.17, allocations: 334.8 kB / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.1702, allocations: 103.8 kB / 357.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.1705, allocations: 135.2 kB / 357.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.1709, allocations: 228.2 kB / 358 MB, free: 12.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1709, allocations: 4 kB / 358 MB, free: 12.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005946/0.1715, allocations: 305.2 kB / 358.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.1715, allocations: 8 kB / 358.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1716, allocations: 4.094 kB / 358.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1716, allocations: 3.938 kB / 358.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.1718, allocations: 31.92 kB / 358.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1718, allocations: 7.938 kB / 358.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.372e-05/0.1719, allocations: 19.83 kB / 358.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1719, allocations: 8 kB / 358.4 MB, free: 12.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1],truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * 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.0001767/0.1721, allocations: 149.8 kB / 358.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.1721, allocations: 19.81 kB / 358.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.1722, allocations: 17.39 kB / 358.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1722, allocations: 3.938 kB / 358.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1722, allocations: 4 kB / 358.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1722, allocations: 0 / 358.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.1725, allocations: 221.4 kB / 358.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1725, allocations: 0 / 358.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-05/0.1725, allocations: 11.98 kB / 358.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1726, allocations: 4 kB / 358.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1726, allocations: 0 / 358.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1726, allocations: 11.94 kB / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1726, allocations: 0 / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.1731, allocations: 230.5 kB / 359.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/0.1732, allocations: 96.84 kB / 359.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.1732, allocations: 16 kB / 359.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.792e-05/0.1733, allocations: 15.92 kB / 359.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.1734, allocations: 15.98 kB / 359.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.1734, allocations: 4 kB / 359.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001312/0.1735, allocations: 137.2 kB / 359.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.1735, allocations: 0 / 359.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005238/0.1741, allocations: 124 kB / 359.5 MB, free: 10.96 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: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008471/0.1749, allocations: 323.8 kB / 359.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004818/0.1754, allocations: 207.7 kB / 360 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1754, allocations: 0 / 360 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.1756, allocations: 67.91 kB / 360.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.1758, allocations: 8 kB / 360.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006649/0.1765, allocations: 340.5 kB / 360.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.177, allocations: 0.7162 MB / 361.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.177, allocations: 15.44 kB / 361.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.114e-06/0.177, allocations: 4 kB / 361.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Templates: time 0.007531/0.1846, allocations: 3.846 MB / 365 MB, free: 5.422 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches