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.0009815/0.0009817, allocations: 94.66 kB / 16.3 MB, free: 5.992 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.001025/0.001025, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.459/1.459, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 7.188 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001541/0.1103, allocations: 1.252 MB / 352.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1126, allocations: 1.361 MB / 353.7 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.038e-05/0.1127, allocations: 4 kB / 353.7 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.1128, allocations: 11.88 kB / 353.8 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.925e-05/0.1129, allocations: 23.84 kB / 353.8 MB, free: 9.055 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.0008517/0.1138, allocations: 299.2 kB / 354.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.1139, allocations: 83.83 kB / 354.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.021e-05/0.114, allocations: 5.5 kB / 354.2 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.745e-05/0.114, allocations: 51.83 kB / 354.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.1141, allocations: 59.73 kB / 354.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.1142, allocations: 11.94 kB / 354.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.1148, allocations: 415.4 kB / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.1148, allocations: 31.84 kB / 354.7 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.517e-05/0.1149, allocations: 45.64 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.1152, allocations: 267.5 kB / 355 MB, free: 7.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.1152, allocations: 0 / 355 MB, free: 7.797 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1152, allocations: 0 / 355 MB, free: 7.797 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1153, allocations: 0 / 355 MB, free: 7.797 MB / 286.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.000743/0.116, allocations: 0.4947 MB / 355.5 MB, free: 7.254 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.116, allocations: 8.031 kB / 355.5 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.1163, allocations: 35.8 kB / 355.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.1165, allocations: 199.6 kB / 355.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.1165, allocations: 4 kB / 355.8 MB, free: 6.969 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.1166, allocations: 15.98 kB / 355.8 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.1169, allocations: 130.1 kB / 355.9 MB, free: 6.812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1169, allocations: 7.938 kB / 355.9 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1169, allocations: 11.94 kB / 355.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.1169, allocations: 0 / 355.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.1171, allocations: 67.95 kB / 356 MB, free: 6.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.1179, allocations: 0.5555 MB / 356.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.1183, allocations: 167.7 kB / 356.7 MB, free: 5.922 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.1183, allocations: 8.062 kB / 356.7 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003183/0.1186, allocations: 157.8 kB / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.1186, allocations: 0 / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006513/0.1193, allocations: 419.9 kB / 357.3 MB, free: 5.281 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.1194, allocations: 118.8 kB / 357.4 MB, free: 5.141 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.1195, allocations: 203.1 kB / 357.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.1196, allocations: 45.7 kB / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.1197, allocations: 108.6 kB / 357.7 MB, free: 4.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.1197, allocations: 47.44 kB / 357.8 MB, free: 4.727 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.1197, allocations: 4 kB / 357.8 MB, free: 4.723 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1198, allocations: 330.8 kB / 358.1 MB, free: 4.391 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.12, allocations: 107.8 kB / 358.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.1203, allocations: 143.2 kB / 358.4 MB, free: 4.133 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.1205, allocations: 116.5 kB / 358.5 MB, free: 4.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1205, allocations: 4 kB / 358.5 MB, free: 4.016 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005251/0.121, allocations: 301.3 kB / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.121, allocations: 15.83 kB / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1211, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1211, allocations: 4 kB / 358.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.1212, allocations: 36.06 kB / 358.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1213, allocations: 0 / 358.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.531e-05/0.1214, allocations: 27.84 kB / 358.9 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.1214, allocations: 8 kB / 358.9 MB, free: 3.625 MB / 286.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,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.1215, allocations: 145.8 kB / 359 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.1216, allocations: 19.72 kB / 359 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.587e-05/0.1216, allocations: 25.34 kB / 359.1 MB, free: 3.426 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1216, allocations: 4 kB / 359.1 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1216, allocations: 0 / 359.1 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1216, allocations: 96 / 359.1 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.1218, allocations: 221.5 kB / 359.3 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1218, allocations: 0 / 359.3 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.1219, allocations: 15.92 kB / 359.3 MB, free: 3.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1219, allocations: 4 kB / 359.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.1219, allocations: 4 kB / 359.3 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.1219, allocations: 7.953 kB / 359.3 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1219, allocations: 4 kB / 359.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.1224, allocations: 269.9 kB / 359.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.839e-05/0.1224, allocations: 92.88 kB / 359.7 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.1225, allocations: 12.08 kB / 359.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.1225, allocations: 11.94 kB / 359.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.1226, allocations: 15.97 kB / 359.7 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.1226, allocations: 4 kB / 359.7 MB, free: 2.668 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.1227, allocations: 141.2 kB / 359.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.884e-06/0.1227, allocations: 0 / 359.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004248/0.1232, allocations: 123.9 kB / 360 MB, free: 2.41 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007101/0.1239, allocations: 333.1 kB / 360.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000435/0.1243, allocations: 203.8 kB / 360.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1243, allocations: 0 / 360.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.1245, allocations: 67.91 kB / 360.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1247, allocations: 12.14 kB / 360.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004847/0.1251, allocations: 304.2 kB / 360.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1254, allocations: 0.724 MB / 361.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.479e-05/0.1255, allocations: 17.42 kB / 361.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.73e-05/0.1256, allocations: 19.38 kB / 361.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1256, allocations: 0 / 361.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of Templates: time 0.006454/0.132, allocations: 3.267 MB / 364.9 MB, free: 13.45 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches