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.000872/0.000872, allocations: 94.8 kB / 17.31 MB, free: 5.59 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.0009429/0.0009428, allocations: 178.4 kB / 18.21 MB, free: 5.191 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.247/1.247, allocations: 223.3 MB / 242.3 MB, free: 180 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002305, allocations: 13.23 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07107, allocations: 50.4 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001387/0.07247, allocations: 1.272 MB / 353.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.07462, allocations: 1.462 MB / 355.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.757e-05/0.07468, allocations: 0 / 355.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.129e-05/0.07476, allocations: 3.938 kB / 355.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.3e-05/0.07485, allocations: 27.8 kB / 355.3 MB, free: 0.9258 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.0007921/0.07565, allocations: 307.2 kB / 355.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.07579, allocations: 123.6 kB / 355.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.07584, allocations: 5.5 kB / 355.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.871e-05/0.0759, allocations: 55.77 kB / 355.7 MB, free: 448 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006149/0.07652, allocations: 93.28 kB / 355.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.07656, allocations: 8 kB / 355.8 MB, free: 352 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006244/0.07719, allocations: 443.1 kB / 356.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.07725, allocations: 35.78 kB / 356.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.07733, allocations: 81.36 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.07769, allocations: 271.7 kB / 356.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.0777, allocations: 0 / 356.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.07771, allocations: 4 kB / 356.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.07772, allocations: 4 kB / 356.7 MB, free: 15.52 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.0006387/0.07836, allocations: 497.5 kB / 357.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.0784, allocations: 8.031 kB / 357.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.07862, allocations: 32.73 kB / 357.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.07878, allocations: 205.7 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.07881, allocations: 15.92 kB / 357.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.07884, allocations: 15.98 kB / 357.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.07909, allocations: 128.1 kB / 357.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.07911, allocations: 0 / 357.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.07913, allocations: 0 / 357.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.07914, allocations: 0 / 357.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/0.07936, allocations: 71.95 kB / 357.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.08007, allocations: 0.5632 MB / 358.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003698/0.08045, allocations: 171.8 kB / 358.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.0806, allocations: 66.56 kB / 358.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.08062, allocations: 7.984 kB / 358.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.08089, allocations: 149.8 kB / 358.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.0809, allocations: 11.94 kB / 358.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005786/0.08149, allocations: 257.5 kB / 358.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.08156, allocations: 126.9 kB / 358.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.08174, allocations: 203 kB / 359.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.08179, allocations: 45.7 kB / 359.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.08186, allocations: 108.5 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.08191, allocations: 43.45 kB / 359.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.08196, allocations: 37.69 kB / 359.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.08206, allocations: 330.8 kB / 359.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.08228, allocations: 107.8 kB / 359.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.08252, allocations: 143.2 kB / 359.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.08291, allocations: 240.2 kB / 360.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.08292, allocations: 0 / 360.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005276/0.08345, allocations: 305.4 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.08348, allocations: 8 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.08349, allocations: 0 / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.08351, allocations: 4 kB / 360.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.08367, allocations: 35.86 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.08369, allocations: 3.984 kB / 360.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.126e-05/0.08378, allocations: 23.75 kB / 360.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.08381, allocations: 16.03 kB / 360.6 MB, free: 11.29 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.0001204/0.08394, allocations: 149.8 kB / 360.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.08397, allocations: 15.81 kB / 360.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.459e-05/0.08401, allocations: 21.39 kB / 360.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.08402, allocations: 3.938 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.08403, allocations: 4 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.08404, allocations: 0 / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.08422, allocations: 217.6 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.08423, allocations: 0 / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-05/0.0843, allocations: 15.98 kB / 361 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.08431, allocations: 0 / 361 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.08433, allocations: 4 kB / 361 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.08434, allocations: 7.875 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.08434, allocations: 0 / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/0.08475, allocations: 242.5 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.08481, allocations: 100.9 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.08484, allocations: 7.984 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.819e-05/0.08493, allocations: 15.94 kB / 361.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.08498, allocations: 15.92 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.085, allocations: 7.984 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.08512, allocations: 141.2 kB / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08512, allocations: 96 / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003877/0.08552, allocations: 123.9 kB / 361.6 MB, free: 10.12 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.0006607/0.08618, allocations: 328.6 kB / 362 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004396/0.08664, allocations: 207.8 kB / 362.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.08665, allocations: 0 / 362.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.08682, allocations: 67.97 kB / 362.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.08701, allocations: 8.25 kB / 362.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/0.0875, allocations: 357.5 kB / 362.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.08772, allocations: 0.7162 MB / 363.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.753e-05/0.08778, allocations: 19.44 kB / 363.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08779, allocations: 0 / 363.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of Templates: time 0.005641/0.09343, allocations: 3.824 MB / 367.1 MB, free: 4.57 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