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.00125/0.00125, allocations: 110.5 kB / 17.06 MB, free: 6.117 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.001054/0.001054, allocations: 198.9 kB / 18 MB, free: 5.195 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001029, allocations: 51.92 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4236, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002849/0.4265, allocations: 1.533 MB / 402.3 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.429, allocations: 1.436 MB / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.164e-05/0.4291, allocations: 0 / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.4292, allocations: 11.86 kB / 403.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.4293, allocations: 31.73 kB / 403.7 MB, free: 5.828 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.001067/0.4304, allocations: 382.9 kB / 404.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.4306, allocations: 123.6 kB / 404.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.058e-05/0.4307, allocations: 17.45 kB / 404.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.416e-05/0.4307, allocations: 51.78 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006035/0.4313, allocations: 88.77 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.4314, allocations: 16 kB / 404.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006006/0.432, allocations: 399.3 kB / 404.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-05/0.4321, allocations: 43.83 kB / 404.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.548e-05/0.4321, allocations: 55.66 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005875/0.4327, allocations: 396.5 kB / 405.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4327, allocations: 3.938 kB / 405.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4327, allocations: 0 / 405.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.4328, allocations: 4 kB / 405.3 MB, free: 4.281 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.0009045/0.4337, allocations: 0.5101 MB / 405.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.4337, allocations: 12.03 kB / 405.8 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.4341, allocations: 28.73 kB / 405.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.4343, allocations: 209.5 kB / 406 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.4344, allocations: 7.984 kB / 406 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.4344, allocations: 8 kB / 406.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.4347, allocations: 132 kB / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.4348, allocations: 0 / 406.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.4348, allocations: 4 kB / 406.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.4348, allocations: 4 kB / 406.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.435, allocations: 63.88 kB / 406.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007717/0.4358, allocations: 0.5477 MB / 406.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.4362, allocations: 155.7 kB / 407 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.4363, allocations: 62.61 kB / 407 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.4363, allocations: 7.938 kB / 407 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.4366, allocations: 145.9 kB / 407.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.352e-06/0.4366, allocations: 0 / 407.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.000593/0.4372, allocations: 253.3 kB / 407.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.4373, allocations: 126.8 kB / 407.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.4375, allocations: 195 kB / 407.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.4376, allocations: 53.81 kB / 407.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.4377, allocations: 104.6 kB / 407.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.027e-05/0.4377, allocations: 47.44 kB / 407.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.141e-05/0.4378, allocations: 57.69 kB / 408 MB, free: 1.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.438, allocations: 330.8 kB / 408.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.4382, allocations: 95.94 kB / 408.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.4384, allocations: 147.2 kB / 408.5 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4388, allocations: 228.4 kB / 408.8 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4388, allocations: 0 / 408.8 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005428/0.4393, allocations: 305.3 kB / 409.1 MB, free: 192 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4394, allocations: 10.81 kB / 409.1 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.4394, allocations: 480 / 409.1 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.4394, allocations: 7.938 kB / 409.1 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.4396, allocations: 27.97 kB / 409.1 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.4396, allocations: 7.938 kB / 409.1 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.586e-05/0.4397, allocations: 19.75 kB / 409.1 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.4397, allocations: 16.09 kB / 409.2 MB, free: 104 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.0001654/0.4399, allocations: 145.9 kB / 409.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.4399, allocations: 11.81 kB / 409.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.44, allocations: 21.39 kB / 409.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.44, allocations: 7.938 kB / 409.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.44, allocations: 0 / 409.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.44, allocations: 3.938 kB / 409.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.4402, allocations: 213.5 kB / 409.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4403, allocations: 8 kB / 409.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.941e-05/0.4403, allocations: 15.98 kB / 409.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.4403, allocations: 0 / 409.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.4403, allocations: 0 / 409.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4404, allocations: 7.938 kB / 409.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4404, allocations: 3.984 kB / 409.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.4408, allocations: 238.4 kB / 409.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.517e-05/0.4409, allocations: 96.95 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.4409, allocations: 15.92 kB / 409.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.386e-05/0.441, allocations: 7.938 kB / 409.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.441, allocations: 15.98 kB / 410 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.4411, allocations: 7.984 kB / 410 MB, free: 15.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.4412, allocations: 141.2 kB / 410.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4412, allocations: 0 / 410.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004877/0.4417, allocations: 123.9 kB / 410.2 MB, free: 14.93 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.0007503/0.4425, allocations: 327.8 kB / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004369/0.4429, allocations: 191.8 kB / 410.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4429, allocations: 0 / 410.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.4431, allocations: 72.16 kB / 410.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.4433, allocations: 10.5 kB / 410.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004785/0.4437, allocations: 277.1 kB / 411.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.444, allocations: 0.7161 MB / 411.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.299e-05/0.4441, allocations: 25.42 kB / 411.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.4441, allocations: 23.42 kB / 411.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4441, allocations: 0 / 411.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Templates: time 0.007428/0.4516, allocations: 3.476 MB / 415.3 MB, free: 9.801 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/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