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.001053/0.001053, allocations: 114.3 kB / 17.7 MB, free: 5.309 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.0009703/0.0009703, allocations: 191 kB / 18.63 MB, free: 4.379 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.323/1.323, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 46.92 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.1008, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002512/0.1033, allocations: 1.522 MB / 353 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1054, allocations: 1.428 MB / 354.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.5e-05/0.1055, allocations: 4 kB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.878e-05/0.1055, allocations: 11.86 kB / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.923e-05/0.1056, allocations: 23.8 kB / 354.5 MB, free: 0.6992 MB / 286.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.0009015/0.1065, allocations: 386.8 kB / 354.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.1067, allocations: 139.5 kB / 355 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.1068, allocations: 17.48 kB / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.796e-05/0.1068, allocations: 55.77 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.1074, allocations: 79.88 kB / 355.2 MB, free: 32 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.1074, allocations: 11.94 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.108, allocations: 403.3 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.916e-05/0.108, allocations: 31.86 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.1081, allocations: 71.58 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004918/0.1086, allocations: 391 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1086, allocations: 0 / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1086, allocations: 0 / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1086, allocations: 4 kB / 356 MB, free: 15.14 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.0007617/0.1094, allocations: 0.518 MB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1094, allocations: 8.031 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.1097, allocations: 28.73 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.1099, allocations: 201.8 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.11, allocations: 15.94 kB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.11, allocations: 8 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.1103, allocations: 132.1 kB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.1103, allocations: 0 / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1103, allocations: 3.984 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1103, allocations: 3.938 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002252/0.1106, allocations: 67.89 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008117/0.1114, allocations: 0.5438 MB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.1118, allocations: 151.7 kB / 357.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.1119, allocations: 62.61 kB / 357.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.1119, allocations: 3.984 kB / 357.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.1122, allocations: 157.8 kB / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.1122, allocations: 0 / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005956/0.1128, allocations: 257.6 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/0.1129, allocations: 122.9 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.1131, allocations: 202.9 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.1132, allocations: 45.69 kB / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.753e-05/0.1132, allocations: 112.5 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.1133, allocations: 43.53 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.1134, allocations: 53.69 kB / 358.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1135, allocations: 334.8 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.1137, allocations: 107.8 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.1139, allocations: 139.7 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1143, allocations: 228.2 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1143, allocations: 0 / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005092/0.1148, allocations: 301.2 kB / 359.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1148, allocations: 7.938 kB / 359.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1148, allocations: 4 kB / 359.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.1148, allocations: 0 / 359.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.115, allocations: 35.91 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.115, allocations: 4.094 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.45e-05/0.1151, allocations: 15.91 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.1151, allocations: 11.98 kB / 359.9 MB, free: 10.95 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,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.0001191/0.1153, allocations: 149.7 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.1153, allocations: 19.8 kB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.1153, allocations: 13.41 kB / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1153, allocations: 3.938 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1154, allocations: 7.938 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1154, allocations: 4 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.1155, allocations: 217.5 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1156, allocations: 0 / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.1156, allocations: 15.92 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1156, allocations: 0 / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1157, allocations: 4 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1157, allocations: 7.922 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1157, allocations: 11.94 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003749/0.1161, allocations: 234.5 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.1161, allocations: 92.86 kB / 360.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.1162, allocations: 15.98 kB / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.1162, allocations: 7.938 kB / 360.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.1163, allocations: 19.97 kB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.1163, allocations: 4 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.1164, allocations: 133.2 kB / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1164, allocations: 4 kB / 360.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.1168, allocations: 124 kB / 361 MB, free: 9.777 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,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.0006085/0.1174, allocations: 313.2 kB / 361.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004346/0.1179, allocations: 211.8 kB / 361.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1179, allocations: 0 / 361.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.118, allocations: 63.91 kB / 361.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.1182, allocations: 10.97 kB / 361.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.1187, allocations: 273.2 kB / 361.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.119, allocations: 0.7165 MB / 362.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.394e-05/0.119, allocations: 21.64 kB / 362.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.1191, allocations: 19.42 kB / 362.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1191, allocations: 0 / 362.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of Templates: time 0.006633/0.1257, allocations: 3.468 MB / 366.1 MB, free: 4.676 MB / 302.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 -s gbode -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