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.001683/0.001683, allocations: 107.1 kB / 17.74 MB, free: 5.316 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.001977/0.001977, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.45/1.45, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.001029, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3295, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002823/0.3324, allocations: 1.528 MB / 402.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.3349, allocations: 1.432 MB / 404.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.967e-05/0.335, allocations: 0 / 404.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.3352, allocations: 15.81 kB / 404.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.002e-05/0.3353, allocations: 23.78 kB / 404.4 MB, free: 5.852 MB / 318.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.001168/0.3365, allocations: 378.8 kB / 404.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001837/0.3367, allocations: 135.6 kB / 404.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.591e-05/0.3367, allocations: 13.48 kB / 404.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.282e-05/0.3368, allocations: 63.75 kB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007239/0.3375, allocations: 74.86 kB / 405.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.3376, allocations: 12 kB / 405.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006943/0.3383, allocations: 403.3 kB / 405.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-05/0.3383, allocations: 39.78 kB / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.597e-05/0.3384, allocations: 63.64 kB / 405.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.3391, allocations: 400.5 kB / 406 MB, free: 4.301 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3391, allocations: 0 / 406 MB, free: 4.301 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3391, allocations: 0 / 406 MB, free: 4.301 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.3391, allocations: 0 / 406 MB, free: 4.301 MB / 318.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.0008435/0.34, allocations: 0.514 MB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.34, allocations: 11.97 kB / 406.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.3403, allocations: 28.73 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.3405, allocations: 213.4 kB / 406.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.3405, allocations: 4 kB / 406.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.3405, allocations: 11.98 kB / 406.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.3408, allocations: 134.5 kB / 406.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.3408, allocations: 4 kB / 406.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3409, allocations: 0 / 406.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3409, allocations: 0 / 406.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.3411, allocations: 59.95 kB / 406.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008268/0.3419, allocations: 0.5554 MB / 407.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.3423, allocations: 147.8 kB / 407.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.3424, allocations: 70.53 kB / 407.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-06/0.3425, allocations: 0 / 407.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.3428, allocations: 153.8 kB / 407.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.3428, allocations: 0 / 407.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006108/0.3434, allocations: 253.5 kB / 408.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.3435, allocations: 126.7 kB / 408.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.3437, allocations: 195.2 kB / 408.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.3437, allocations: 49.69 kB / 408.5 MB, free: 1.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.3438, allocations: 112.5 kB / 408.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.3439, allocations: 39.45 kB / 408.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.344, allocations: 53.7 kB / 408.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3441, allocations: 330.8 kB / 409 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.3443, allocations: 103.9 kB / 409.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3445, allocations: 143.2 kB / 409.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.3449, allocations: 220.5 kB / 409.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3449, allocations: 7.984 kB / 409.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000513/0.3455, allocations: 301.3 kB / 409.7 MB, free: 212 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3455, allocations: 4 kB / 409.7 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.3455, allocations: 4 kB / 409.7 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3455, allocations: 7.938 kB / 409.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.3457, allocations: 31.92 kB / 409.8 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3457, allocations: 0 / 409.8 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.3458, allocations: 35.81 kB / 409.8 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.3458, allocations: 4 kB / 409.8 MB, free: 124 kB / 318.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.000157/0.346, allocations: 153.8 kB / 410 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.346, allocations: 15.81 kB / 410 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.3461, allocations: 21.33 kB / 410 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3461, allocations: 3.938 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3461, allocations: 0 / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3461, allocations: 8 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.3464, allocations: 213.5 kB / 410.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3464, allocations: 0 / 410.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.3464, allocations: 15.92 kB / 410.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3464, allocations: 0 / 410.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.3465, allocations: 4 kB / 410.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3465, allocations: 3.938 kB / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3465, allocations: 0 / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.3469, allocations: 242.5 kB / 410.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-05/0.347, allocations: 88.92 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.347, allocations: 12 kB / 410.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.424e-05/0.3471, allocations: 11.92 kB / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.3472, allocations: 15.92 kB / 410.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.3472, allocations: 11.94 kB / 410.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001226/0.3473, allocations: 137.2 kB / 410.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3473, allocations: 0 / 410.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004702/0.3478, allocations: 127.9 kB / 410.9 MB, free: 14.95 MB / 334.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.0007574/0.3486, allocations: 328.6 kB / 411.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004836/0.3491, allocations: 195.8 kB / 411.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3491, allocations: 4.188 kB / 411.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.3492, allocations: 63.97 kB / 411.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.3494, allocations: 8 kB / 411.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000561/0.35, allocations: 318.7 kB / 411.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000362/0.3504, allocations: 0.7201 MB / 412.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.756e-05/0.3504, allocations: 19.44 kB / 412.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3504, allocations: 0 / 412.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Templates: time 0.006847/0.3573, allocations: 3.867 MB / 416.4 MB, free: 9.41 MB / 334.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