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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 117 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.00135, allocations: 62.2 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1271, allocations: 50.53 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003659/0.1308, allocations: 1.624 MB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.1337, allocations: 1.489 MB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.1339, allocations: 0 / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1341, allocations: 3.938 kB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.1343, allocations: 27.8 kB / 360.1 MB, free: 11.02 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.001587/0.1359, allocations: 339.3 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.1361, allocations: 135.5 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.928e-05/0.1362, allocations: 13.48 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.1364, allocations: 51.72 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008176/0.1372, allocations: 89 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.1373, allocations: 12 kB / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009126/0.1382, allocations: 455.1 kB / 361.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.1383, allocations: 39.83 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.872e-05/0.1384, allocations: 63.61 kB / 361.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009469/0.1394, allocations: 419.1 kB / 361.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1394, allocations: 0 / 361.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1394, allocations: 0 / 361.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1394, allocations: 0 / 361.7 MB, free: 9.438 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.001076/0.1405, allocations: 0.5206 MB / 362.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1405, allocations: 12.03 kB / 362.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002626/0.1408, allocations: 28.73 kB / 362.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.1411, allocations: 197.8 kB / 362.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.1411, allocations: 16.34 kB / 362.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.1411, allocations: 8.125 kB / 362.5 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.1415, allocations: 136.1 kB / 362.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1415, allocations: 4 kB / 362.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.1415, allocations: 0 / 362.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1415, allocations: 4 kB / 362.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.1417, allocations: 63.89 kB / 362.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009231/0.1427, allocations: 0.5399 MB / 363.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.143, allocations: 155.7 kB / 363.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.1432, allocations: 66.55 kB / 363.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.1432, allocations: 3.938 kB / 363.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003005/0.1435, allocations: 154.1 kB / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.517e-06/0.1435, allocations: 0 / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006605/0.1442, allocations: 253.3 kB / 363.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1443, allocations: 114.9 kB / 363.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.1446, allocations: 207 kB / 364.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.976e-05/0.1447, allocations: 45.7 kB / 364.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1448, allocations: 112.5 kB / 364.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.1448, allocations: 39.55 kB / 364.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.456e-05/0.1449, allocations: 57.69 kB / 364.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1451, allocations: 334.8 kB / 364.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.1453, allocations: 95.95 kB / 364.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.1457, allocations: 147.2 kB / 365 MB, free: 5.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005181/0.1462, allocations: 232.2 kB / 365.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.1462, allocations: 4 kB / 365.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005757/0.1468, allocations: 301.2 kB / 365.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1468, allocations: 11.98 kB / 365.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1468, allocations: 0 / 365.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1468, allocations: 4 kB / 365.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.147, allocations: 27.92 kB / 365.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.147, allocations: 4 kB / 365.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.834e-05/0.1471, allocations: 27.86 kB / 365.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1472, allocations: 8 kB / 365.6 MB, free: 5.246 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.0001689/0.1473, allocations: 158.8 kB / 365.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.1474, allocations: 19.75 kB / 365.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.1474, allocations: 13.41 kB / 365.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1474, allocations: 4 kB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1474, allocations: 0 / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1475, allocations: 11.92 kB / 365.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.1477, allocations: 213.5 kB / 366 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1477, allocations: 0 / 366 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.734e-05/0.1478, allocations: 8 kB / 366 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.1478, allocations: 4 kB / 366 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.1478, allocations: 3.984 kB / 366 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1478, allocations: 4 kB / 366 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1478, allocations: 0 / 366 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.1483, allocations: 241.3 kB / 366.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.1483, allocations: 100.8 kB / 366.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.1484, allocations: 12 kB / 366.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.131e-05/0.1485, allocations: 7.984 kB / 366.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.581e-05/0.1486, allocations: 19.92 kB / 366.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.1486, allocations: 8 kB / 366.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.1487, allocations: 137.2 kB / 366.5 MB, free: 4.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1487, allocations: 0 / 366.5 MB, free: 4.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005106/0.1492, allocations: 123.9 kB / 366.6 MB, free: 4.082 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.0008751/0.1501, allocations: 318 kB / 366.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004427/0.1506, allocations: 215.7 kB / 367.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.1506, allocations: 4.188 kB / 367.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.1508, allocations: 67.91 kB / 367.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.151, allocations: 10.5 kB / 367.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.1515, allocations: 309.3 kB / 367.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.1519, allocations: 0.7123 MB / 368.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.229e-05/0.152, allocations: 29.34 kB / 368.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.152, allocations: 23.44 kB / 368.3 MB, free: 2.363 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.152, allocations: 0 / 368.3 MB, free: 2.363 MB / 302.1 MB Notification: Performance of Templates: time 0.1932/0.3452, allocations: 3.474 MB / 371.8 MB, free: 19.59 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches