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.0008095/0.0008099, allocations: 89.02 kB / 16.65 MB, free: 6.598 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.0008928/0.0008931, allocations: 177.5 kB / 17.56 MB, free: 6.203 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.447/1.447, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004768/0.0004769, allocations: 11.92 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1474, allocations: 50.41 MB / 351.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002246/0.1497, allocations: 1.272 MB / 353.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.1524, allocations: 1.466 MB / 354.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.54e-05/0.1525, allocations: 0 / 354.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1526, allocations: 11.86 kB / 354.6 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.1527, allocations: 15.88 kB / 354.6 MB, free: 0.9414 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.00104/0.1538, allocations: 307.3 kB / 354.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.1539, allocations: 123.6 kB / 355 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.277e-05/0.154, allocations: 17.48 kB / 355 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.231e-05/0.1541, allocations: 51.77 kB / 355.1 MB, free: 456 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006879/0.1548, allocations: 81.44 kB / 355.2 MB, free: 380 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.1548, allocations: 8 kB / 355.2 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006461/0.1555, allocations: 443.1 kB / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.1556, allocations: 31.78 kB / 355.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.154e-05/0.1556, allocations: 89.34 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005488/0.1562, allocations: 399.1 kB / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1562, allocations: 0 / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1562, allocations: 0 / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1562, allocations: 0 / 356.1 MB, free: 15.41 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007492/0.157, allocations: 0.491 MB / 356.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.157, allocations: 8.031 kB / 356.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.1573, allocations: 32.73 kB / 356.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.1575, allocations: 209.7 kB / 356.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.1575, allocations: 11.92 kB / 356.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.1576, allocations: 11.98 kB / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.1579, allocations: 132.1 kB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1579, allocations: 0 / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.1579, allocations: 0 / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1579, allocations: 4 kB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.1582, allocations: 75.89 kB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.1589, allocations: 0.5555 MB / 357.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.1593, allocations: 167.7 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.1595, allocations: 70.56 kB / 357.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1595, allocations: 3.984 kB / 357.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.1598, allocations: 153.9 kB / 358 MB, free: 13.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1598, allocations: 0 / 358 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006383/0.1605, allocations: 269.4 kB / 358.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.1606, allocations: 118.8 kB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1607, allocations: 195 kB / 358.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.1608, allocations: 49.81 kB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.446e-05/0.1609, allocations: 116.5 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.1609, allocations: 43.45 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.161, allocations: 37.69 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1611, allocations: 330.8 kB / 359.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1613, allocations: 103.8 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.1616, allocations: 147.2 kB / 359.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.162, allocations: 240.2 kB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.162, allocations: 0 / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005173/0.1625, allocations: 313.2 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1625, allocations: 4.094 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1625, allocations: 8 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1626, allocations: 0 / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.1627, allocations: 35.86 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.1627, allocations: 7.984 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.724e-05/0.1628, allocations: 19.81 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.1629, allocations: 8 kB / 360 MB, free: 11.19 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.000142/0.163, allocations: 161.8 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.163, allocations: 15.81 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.862e-05/0.1631, allocations: 21.39 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1631, allocations: 3.938 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1631, allocations: 0 / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1631, allocations: 4 kB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.1633, allocations: 205.6 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1633, allocations: 0 / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.362e-05/0.1634, allocations: 19.98 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.1634, allocations: 4 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1634, allocations: 0 / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1634, allocations: 7.938 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1634, allocations: 0 / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.1638, allocations: 248.8 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.1639, allocations: 96.86 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.164, allocations: 11.98 kB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.006e-05/0.164, allocations: 7.938 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.827e-05/0.1641, allocations: 19.92 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.1641, allocations: 7.984 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000104/0.1642, allocations: 141.2 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1643, allocations: 0 / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000437/0.1647, allocations: 120 kB / 361.1 MB, free: 10.01 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.0007324/0.1654, allocations: 329.2 kB / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004502/0.1659, allocations: 207.8 kB / 361.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1659, allocations: 0 / 361.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.1661, allocations: 67.91 kB / 361.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.1663, allocations: 8 kB / 361.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005386/0.1668, allocations: 324.6 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.1671, allocations: 0.724 MB / 362.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.87e-05/0.1672, allocations: 25.39 kB / 362.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.958e-05/0.1673, allocations: 15.44 kB / 362.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1673, allocations: 0 / 362.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of Templates: time 0.006941/0.1742, allocations: 3.297 MB / 366.1 MB, free: 5.004 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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