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.002056/0.002056, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002551/0.002551, allocations: 196 kB / 18 MB, free: 5.105 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.179/2.179, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 47.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6728/0.6746, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.005571/0.6803, allocations: 1.524 MB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005529/0.6858, allocations: 1.435 MB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002303/0.6861, allocations: 0 / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002294/0.6864, allocations: 7.875 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002549/0.6868, allocations: 31.78 kB / 403.2 MB, free: 5.793 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.002506/0.6893, allocations: 382.8 kB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.6898, allocations: 127.6 kB / 403.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.6899, allocations: 13.48 kB / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.6901, allocations: 59.75 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001103/0.6912, allocations: 85.22 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.6913, allocations: 12 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001177/0.6925, allocations: 403.3 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.6927, allocations: 43.7 kB / 404.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.6928, allocations: 59.67 kB / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.694, allocations: 396.8 kB / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.694, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.694, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.6941, 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.001551/0.6956, allocations: 0.5181 MB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.408e-05/0.6957, allocations: 8.031 kB / 405.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.6959, allocations: 46.64 kB / 405.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000479/0.6964, allocations: 28.73 kB / 405.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.6968, allocations: 213.3 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.6968, allocations: 8 kB / 405.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.6969, allocations: 12 kB / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.6974, allocations: 136.1 kB / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.6975, allocations: 0 / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.6975, allocations: 4 kB / 405.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.6975, allocations: 0 / 405.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.698, allocations: 71.89 kB / 405.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.6997, allocations: 0.5555 MB / 406.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.7004, allocations: 151.9 kB / 406.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.7007, allocations: 70.55 kB / 406.6 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.7007, allocations: 0 / 406.6 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006112/0.7013, allocations: 153.8 kB / 406.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.885e-06/0.7014, allocations: 0 / 406.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001296/0.7027, allocations: 249.7 kB / 407 MB, free: 1.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002083/0.7029, allocations: 122.8 kB / 407.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.7034, allocations: 199.2 kB / 407.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.973e-05/0.7035, allocations: 41.7 kB / 407.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.7038, allocations: 112.5 kB / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.7039, allocations: 51.33 kB / 407.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.7042, allocations: 61.67 kB / 407.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003204/0.7045, allocations: 330.8 kB / 407.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004307/0.705, allocations: 95.95 kB / 408 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.7054, allocations: 147.2 kB / 408.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007204/0.7061, allocations: 220.2 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.7062, allocations: 4 kB / 408.3 MB, free: 380 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001019/0.7072, allocations: 301.3 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.215e-05/0.7072, allocations: 15.92 kB / 408.6 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.7073, allocations: 0 / 408.6 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.7073, allocations: 0 / 408.6 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.7076, allocations: 35.86 kB / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.7077, allocations: 0 / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.7079, allocations: 31.83 kB / 408.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.708, 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.000286/0.7083, allocations: 145.8 kB / 408.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.7084, allocations: 19.75 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.464e-05/0.7084, allocations: 17.41 kB / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.7084, allocations: 0 / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.7085, allocations: 4 kB / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.7085, allocations: 7.984 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.7089, allocations: 213.6 kB / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.7089, allocations: 4 kB / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.709, allocations: 11.98 kB / 409.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.7091, allocations: 7.875 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.7091, allocations: 0 / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.7091, allocations: 7.984 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.7091, allocations: 0 / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007502/0.7099, allocations: 236.9 kB / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.71, allocations: 104.8 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/0.7101, allocations: 11.94 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.7102, allocations: 7.984 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.7104, allocations: 15.98 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.7104, allocations: 8 kB / 409.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.7107, allocations: 141.2 kB / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7107, allocations: 0 / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000891/0.7116, allocations: 116 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.003067/0.7147, allocations: 1.06 MB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009201/0.7156, allocations: 199.8 kB / 411 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.7156, allocations: 0 / 411 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.7159, allocations: 64.16 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.0003362/0.7163, allocations: 16 kB / 411.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/0.7224, allocations: 2.3 MB / 413.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/0.7231, allocations: 0.7201 MB / 414.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000168/0.7233, allocations: 21.41 kB / 414.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.7235, allocations: 55.34 kB / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of SimCode: time 1.723e-06/0.7236, allocations: 0 / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.466/2.19, allocations: 5.49 MB / 419.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.88/27.07, allocations: 20.2 kB / 419.7 MB, free: 4.824 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