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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 112.7 kB / 17.06 MB, free: 5.988 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.002026/0.002026, allocations: 200 kB / 18 MB, free: 5.066 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.178/2.178, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 43.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5472/0.5493, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00453/0.5539, allocations: 1.522 MB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.5571, allocations: 1.436 MB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.5573, allocations: 0 / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.5576, allocations: 11.81 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.5577, allocations: 23.8 kB / 403.2 MB, free: 5.805 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.001734/0.5595, allocations: 390.8 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.5598, allocations: 127.7 kB / 403.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.956e-05/0.5599, allocations: 13.48 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.56, allocations: 59.7 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008188/0.5608, allocations: 89.61 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.666e-05/0.5609, allocations: 12 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009007/0.5618, allocations: 407.3 kB / 404.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.421e-05/0.5619, allocations: 39.84 kB / 404.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.603e-05/0.562, allocations: 63.59 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009508/0.563, allocations: 392.8 kB / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.563, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.563, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.563, allocations: 0 / 404.8 MB, free: 4.246 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.001082/0.5641, allocations: 0.5104 MB / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5641, allocations: 8.031 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.254e-05/0.5642, allocations: 50.64 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.5645, allocations: 36.67 kB / 405.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.5647, allocations: 209.3 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.5648, allocations: 4 kB / 405.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.5648, allocations: 8 kB / 405.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.5651, allocations: 132.2 kB / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.5651, allocations: 0 / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.5652, allocations: 11.98 kB / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.5652, allocations: 0 / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.5654, allocations: 67.89 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009049/0.5663, allocations: 0.5516 MB / 406.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.5667, allocations: 151.8 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.5669, allocations: 70.61 kB / 406.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.5669, allocations: 0 / 406.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003395/0.5672, allocations: 157.8 kB / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.064e-06/0.5672, allocations: 0 / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006728/0.5679, allocations: 253.3 kB / 407 MB, free: 1.812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.568, allocations: 122.7 kB / 407.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.5683, allocations: 195.1 kB / 407.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.36e-05/0.5683, allocations: 49.69 kB / 407.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.5684, allocations: 116.5 kB / 407.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.317e-05/0.5685, allocations: 47.39 kB / 407.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.5686, allocations: 57.69 kB / 407.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5687, allocations: 330.8 kB / 407.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.5689, allocations: 99.94 kB / 408 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.5692, allocations: 139.2 kB / 408.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.5695, allocations: 228.2 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5696, allocations: 0 / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005273/0.5701, allocations: 305.3 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.5701, allocations: 11.94 kB / 408.6 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5701, allocations: 0 / 408.6 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.5702, allocations: 4 kB / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.5703, allocations: 31.92 kB / 408.7 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.5704, allocations: 4 kB / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.5705, allocations: 23.91 kB / 408.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.5705, allocations: 12 kB / 408.7 MB, free: 15.98 MB / 334.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,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],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]) * 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.0001772/0.5707, allocations: 153.9 kB / 408.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.5708, allocations: 15.75 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.722e-05/0.5708, allocations: 21.39 kB / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.5708, allocations: 4 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.5708, allocations: 0 / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5708, allocations: 0 / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.5711, allocations: 217.6 kB / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5711, allocations: 0 / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.227e-05/0.5712, allocations: 19.92 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.5712, allocations: 3.938 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.5712, allocations: 4 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.5712, allocations: 3.938 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5712, allocations: 0 / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/0.5717, allocations: 234.5 kB / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.066e-05/0.5718, allocations: 100.9 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.5718, allocations: 7.938 kB / 409.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.411e-05/0.5719, allocations: 11.98 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/0.572, allocations: 15.92 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.572, allocations: 4 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.5721, allocations: 141.2 kB / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5721, allocations: 0 / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005114/0.5727, allocations: 124 kB / 409.8 MB, free: 14.81 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.001774/0.5744, allocations: 1.056 MB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000595/0.5751, allocations: 199.8 kB / 411 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5751, allocations: 0 / 411 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.5753, allocations: 63.91 kB / 411.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.5755, allocations: 18.34 kB / 411.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003413/0.5789, allocations: 2.311 MB / 413.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.5793, allocations: 0.7162 MB / 414.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.702e-05/0.5794, allocations: 25.41 kB / 414.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.716e-05/0.5795, allocations: 47.42 kB / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5795, allocations: 0 / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.6095, allocations: 5.483 MB / 419.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.71, allocations: 15.45 kB / 419.7 MB, free: 4.832 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > 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