Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001515, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00185/0.00185, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 62.27 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08932, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002677/0.09204, allocations: 1.526 MB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002331/0.09439, allocations: 1.486 MB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.877e-05/0.09449, allocations: 0 / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.484e-05/0.09461, allocations: 7.875 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.931e-05/0.09472, allocations: 27.8 kB / 360.6 MB, free: 10.94 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.00114/0.09586, allocations: 386.8 kB / 361 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.09604, allocations: 127.6 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.249e-05/0.09611, allocations: 17.47 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.076e-05/0.0962, allocations: 55.72 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000556/0.09676, allocations: 91.83 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.506e-05/0.09682, allocations: 16 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006849/0.09751, allocations: 411.3 kB / 361.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.619e-05/0.09759, allocations: 39.89 kB / 361.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.345e-05/0.09768, allocations: 63.53 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00063/0.09832, allocations: 407.3 kB / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09833, allocations: 0 / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09834, allocations: 0 / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.09835, allocations: 0 / 362.2 MB, free: 9.359 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.0007847/0.09914, allocations: 0.5142 MB / 362.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.09918, allocations: 8.031 kB / 362.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.353e-05/0.09925, allocations: 46.67 kB / 362.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.09948, allocations: 28.73 kB / 362.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.09969, allocations: 209.6 kB / 363 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.09972, allocations: 12.31 kB / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.09975, allocations: 11.94 kB / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1, allocations: 132.2 kB / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.1, allocations: 0 / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.1001, allocations: 4 kB / 363.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1001, allocations: 0 / 363.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.1003, allocations: 71.88 kB / 363.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008318/0.1011, allocations: 0.5556 MB / 363.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.1015, allocations: 155.7 kB / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1017, allocations: 66.61 kB / 364 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.1017, allocations: 3.984 kB / 364 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.102, allocations: 153.8 kB / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.102, allocations: 0 / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005738/0.1026, allocations: 249.3 kB / 364.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.1026, allocations: 114.8 kB / 364.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1029, allocations: 207.1 kB / 364.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.1029, allocations: 45.7 kB / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.103, allocations: 116.4 kB / 364.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.103, allocations: 43.53 kB / 364.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-05/0.1031, allocations: 53.7 kB / 365 MB, free: 6.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1033, allocations: 330.8 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1035, allocations: 103.9 kB / 365.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.1037, allocations: 139.2 kB / 365.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.1041, allocations: 227.7 kB / 365.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1041, allocations: 4 kB / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005138/0.1046, allocations: 297.2 kB / 366.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1047, allocations: 8 kB / 366.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1047, allocations: 0 / 366.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1047, allocations: 0 / 366.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1049, allocations: 35.86 kB / 366.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1049, allocations: 4 kB / 366.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.802e-05/0.105, allocations: 27.86 kB / 366.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.105, allocations: 8 kB / 366.1 MB, free: 5.105 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,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.0001348/0.1051, allocations: 154.8 kB / 366.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.1052, allocations: 15.81 kB / 366.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.1052, allocations: 17.39 kB / 366.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1052, allocations: 7.938 kB / 366.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1052, allocations: 3.938 kB / 366.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1052, allocations: 4 kB / 366.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.1055, allocations: 221.4 kB / 366.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1055, allocations: 4 kB / 366.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.884e-05/0.1055, allocations: 11.98 kB / 366.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1055, allocations: 0 / 366.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.1056, allocations: 8 kB / 366.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.1056, allocations: 3.938 kB / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1056, allocations: 0 / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.106, allocations: 233.3 kB / 366.8 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.1061, allocations: 100.9 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.1061, allocations: 4 kB / 366.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.053e-05/0.1062, allocations: 11.92 kB / 366.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.1063, allocations: 15.98 kB / 366.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.1063, allocations: 8 kB / 366.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001125/0.1064, allocations: 141.2 kB / 367.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1064, allocations: 0 / 367.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.1069, allocations: 127.9 kB / 367.2 MB, free: 3.938 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,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.001542/0.1084, allocations: 1.058 MB / 368.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004458/0.1089, allocations: 203.7 kB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1089, allocations: 0 / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.109, allocations: 72.16 kB / 368.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.1092, allocations: 15.98 kB / 368.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.1122, allocations: 2.31 MB / 370.9 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1274/0.2396, allocations: 0.7162 MB / 371.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.2397, allocations: 21.59 kB / 371.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.373e-05/0.2398, allocations: 46.08 kB / 371.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2398, allocations: 0 / 371.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.2609, allocations: 5.439 MB / 377.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.23, allocations: 7.891 kB / 377.1 MB, free: 18.89 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.csv","/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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches