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.001185/0.001185, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001157/0.001157, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.37/1.37, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 55.89 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1131, allocations: 49.44 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003116/0.1163, allocations: 1.523 MB / 352.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1189, allocations: 1.428 MB / 353.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.119, allocations: 0 / 353.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.1192, allocations: 7.875 kB / 353.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.1193, allocations: 23.8 kB / 353.7 MB, free: 1.426 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.001282/0.1206, allocations: 394.8 kB / 354.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.1208, allocations: 131.6 kB / 354.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.736e-05/0.1208, allocations: 17.42 kB / 354.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.835e-05/0.1209, allocations: 51.78 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006467/0.1216, allocations: 93.2 kB / 354.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.296e-05/0.1216, allocations: 12 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007958/0.1224, allocations: 399.4 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.73e-05/0.1225, allocations: 47.77 kB / 354.8 MB, free: 308 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.039e-05/0.1226, allocations: 59.66 kB / 354.9 MB, free: 248 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007889/0.1234, allocations: 399.3 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1234, allocations: 0 / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1235, allocations: 0 / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.1235, allocations: 0 / 355.3 MB, free: 15.85 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.0009008/0.1244, allocations: 0.5102 MB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1244, allocations: 8.031 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002738/0.1247, allocations: 36.72 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.1249, allocations: 205.8 kB / 356 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.125, allocations: 7.938 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.125, allocations: 11.94 kB / 356 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.1253, allocations: 131 kB / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1253, allocations: 0 / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.1253, allocations: 0 / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1253, allocations: 4 kB / 356.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.1256, allocations: 63.89 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008261/0.1264, allocations: 0.5477 MB / 356.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.1269, allocations: 151.7 kB / 356.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.127, allocations: 66.61 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.1271, allocations: 0 / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.1274, allocations: 153.8 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.806e-06/0.1274, allocations: 7.984 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006089/0.128, allocations: 253.4 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.1281, allocations: 114.8 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.1283, allocations: 203 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.1284, allocations: 45.69 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.1285, allocations: 112.5 kB / 357.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.832e-05/0.1285, allocations: 47.66 kB / 357.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.559e-05/0.1286, allocations: 53.64 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1287, allocations: 338.8 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.129, allocations: 103.8 kB / 358.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1292, allocations: 135.7 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.1296, allocations: 228.2 kB / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1296, allocations: 0 / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005477/0.1302, allocations: 313.2 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1302, allocations: 4 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1302, allocations: 4 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1302, allocations: 3.938 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.1304, allocations: 31.92 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1304, allocations: 0 / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.304e-05/0.1305, allocations: 23.89 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.1305, allocations: 8 kB / 359.1 MB, free: 11.67 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.0001444/0.1307, allocations: 153.7 kB / 359.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.1307, allocations: 15.81 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/0.1308, allocations: 17.39 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1308, allocations: 3.938 kB / 359.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1308, allocations: 0 / 359.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1308, allocations: 4 kB / 359.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.131, allocations: 217.5 kB / 359.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.131, allocations: 0 / 359.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-05/0.1311, allocations: 15.92 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1311, allocations: 4 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1311, allocations: 4 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1312, allocations: 3.938 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1312, allocations: 0 / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004159/0.1316, allocations: 242.5 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.1317, allocations: 96.84 kB / 359.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.1317, allocations: 12 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.1318, allocations: 11.92 kB / 359.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.1319, allocations: 11.98 kB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.1319, allocations: 4 kB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.132, allocations: 137.2 kB / 360.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.132, allocations: 3.938 kB / 360.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004646/0.1325, allocations: 120 kB / 360.2 MB, free: 10.51 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.0008361/0.1333, allocations: 332.6 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004735/0.1338, allocations: 207.7 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1338, allocations: 0 / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.134, allocations: 67.91 kB / 360.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.1342, allocations: 11.44 kB / 360.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.1348, allocations: 315.1 kB / 361.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1351, allocations: 0.7123 MB / 361.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.1352, allocations: 19.44 kB / 361.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1352, allocations: 0 / 361.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of Templates: time 0.007239/0.1424, allocations: 3.851 MB / 365.7 MB, free: 4.98 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 -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