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.001668/0.001668, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001837/0.001837, allocations: 195.1 kB / 17.42 MB, free: 6.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 1.357/1.357, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009544/0.0009544, allocations: 50.8 kB / 299.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.1007, allocations: 49.44 MB / 349.4 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002738/0.1035, allocations: 1.624 MB / 351 MB, free: 3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.1059, allocations: 1.504 MB / 352.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.473e-05/0.106, allocations: 0 / 352.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.1061, allocations: 3.938 kB / 352.5 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.183e-05/0.1062, allocations: 19.86 kB / 352.5 MB, free: 1.465 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.001033/0.1073, allocations: 311.2 kB / 352.8 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001622/0.1074, allocations: 123.6 kB / 353 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.422e-05/0.1075, allocations: 5.5 kB / 353 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.079e-05/0.1076, allocations: 51.77 kB / 353 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00076/0.1084, allocations: 89.42 kB / 353.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.1084, allocations: 4 kB / 353.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007264/0.1091, allocations: 439.1 kB / 353.5 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.1092, allocations: 35.84 kB / 353.6 MB, free: 436 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.141e-05/0.1093, allocations: 59.58 kB / 353.6 MB, free: 376 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006005/0.1099, allocations: 399.3 kB / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1099, allocations: 0 / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1099, allocations: 0 / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1099, allocations: 0 / 354 MB, free: 15.97 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.0009191/0.1108, allocations: 0.5181 MB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1109, allocations: 8.031 kB / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.1111, allocations: 32.73 kB / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1113, allocations: 201.7 kB / 354.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.1114, allocations: 11.94 kB / 354.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.1114, allocations: 11.98 kB / 354.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.1117, allocations: 128.1 kB / 354.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1117, allocations: 0 / 354.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.1117, allocations: 4 kB / 354.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.1117, allocations: 3.938 kB / 354.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.112, allocations: 63.95 kB / 355 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.1128, allocations: 0.5476 MB / 355.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.1131, allocations: 159.7 kB / 355.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.1133, allocations: 62.61 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.1133, allocations: 0 / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.1136, allocations: 153.8 kB / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.1137, allocations: 0 / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005774/0.1142, allocations: 250 kB / 356.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.1143, allocations: 122.7 kB / 356.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.1146, allocations: 203.1 kB / 356.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.1146, allocations: 45.69 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.1147, allocations: 116.5 kB / 356.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.1147, allocations: 39.55 kB / 356.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.1148, allocations: 61.69 kB / 356.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.115, allocations: 326.8 kB / 357 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1152, allocations: 99.94 kB / 357.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.1154, allocations: 139.2 kB / 357.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.1158, allocations: 228.2 kB / 357.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1158, allocations: 0 / 357.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005501/0.1163, allocations: 309.2 kB / 357.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1164, allocations: 8 kB / 357.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1164, allocations: 0 / 357.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1164, allocations: 0 / 357.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1166, allocations: 39.86 kB / 357.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.1166, allocations: 7.969 kB / 357.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.1167, allocations: 19.98 kB / 357.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1168, allocations: 12 kB / 357.9 MB, free: 11.79 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.0001513/0.1169, allocations: 145.7 kB / 358 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.117, allocations: 19.81 kB / 358.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.117, allocations: 17.39 kB / 358.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.117, allocations: 3.938 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.117, allocations: 4 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.117, allocations: 0 / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.1173, allocations: 217.5 kB / 358.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1173, allocations: 0 / 358.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.087e-05/0.1174, allocations: 15.92 kB / 358.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.1174, allocations: 4 kB / 358.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.1174, allocations: 0 / 358.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1174, allocations: 3.938 kB / 358.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1174, allocations: 7.938 kB / 358.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.1179, allocations: 234.6 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.1179, allocations: 96.86 kB / 358.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.118, allocations: 11.98 kB / 358.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.118, allocations: 11.97 kB / 358.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.1181, allocations: 23.91 kB / 358.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.1181, allocations: 3.984 kB / 358.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.1183, allocations: 145.2 kB / 358.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1183, allocations: 0 / 358.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.1187, allocations: 116 kB / 359 MB, free: 10.62 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.0007218/0.1194, allocations: 325.2 kB / 359.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004441/0.1199, allocations: 199.7 kB / 359.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1199, allocations: 0 / 359.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.1201, allocations: 64.25 kB / 359.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.1203, allocations: 8.094 kB / 359.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007392/0.121, allocations: 330.5 kB / 359.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.1216, allocations: 0.7162 MB / 360.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.238e-05/0.1217, allocations: 25.41 kB / 360.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.1217, allocations: 15.44 kB / 360.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1217, allocations: 0 / 360.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of Templates: time 0.008073/0.1298, allocations: 3.317 MB / 363.9 MB, free: 5.621 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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