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.001044/0.001044, allocations: 95.94 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 200.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.2 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002756, allocations: 4 kB / 306.6 MB, free: 1.395 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 51.48 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001744/0.1325, allocations: 1.258 MB / 359.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.135, allocations: 1.412 MB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.991e-05/0.1351, allocations: 0 / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1352, allocations: 7.875 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.1353, allocations: 27.89 kB / 360.8 MB, free: 11.19 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.001091/0.1364, allocations: 299.2 kB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.1366, allocations: 79.84 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.681e-05/0.1367, allocations: 17.48 kB / 361.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.946e-05/0.1367, allocations: 47.77 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1369, allocations: 59.75 kB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.1369, allocations: 11.98 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006589/0.1376, allocations: 419.4 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.1377, allocations: 39.77 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.773e-05/0.1377, allocations: 45.64 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003945/0.1381, allocations: 279.7 kB / 362 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1381, allocations: 0 / 362 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1381, allocations: 0 / 362 MB, free: 9.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.1381, allocations: 0 / 362 MB, free: 9.906 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.0007593/0.1389, allocations: 498.6 kB / 362.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.139, allocations: 12.03 kB / 362.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.1392, allocations: 27.8 kB / 362.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.1394, allocations: 204.4 kB / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1394, allocations: 11.95 kB / 362.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.1395, allocations: 8 kB / 362.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.1397, allocations: 136.1 kB / 362.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.1397, allocations: 0 / 362.9 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.1398, allocations: 3.984 kB / 362.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1398, allocations: 0 / 362.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.14, allocations: 71.89 kB / 363 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.1409, allocations: 0.5554 MB / 363.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.1412, allocations: 167.8 kB / 363.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.1413, allocations: 4.109 kB / 363.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003237/0.1416, allocations: 152.5 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.1416, allocations: 4 kB / 363.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007458/0.1424, allocations: 419.9 kB / 364.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.461e-05/0.1425, allocations: 126.9 kB / 364.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.1427, allocations: 195 kB / 364.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.692e-05/0.1427, allocations: 45.69 kB / 364.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.671e-05/0.1428, allocations: 108.6 kB / 364.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.1429, allocations: 47.44 kB / 364.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.1429, allocations: 4 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.143, allocations: 334.8 kB / 365.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.1433, allocations: 103.9 kB / 365.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.1435, allocations: 147.2 kB / 365.4 MB, free: 6.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.1437, allocations: 124.5 kB / 365.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1437, allocations: 0 / 365.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000518/0.1443, allocations: 301.3 kB / 365.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1443, allocations: 4 kB / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1443, allocations: 96 / 365.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1443, allocations: 8 kB / 365.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.1445, allocations: 39.86 kB / 365.8 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.1445, allocations: 7.984 kB / 365.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.992e-05/0.1446, allocations: 23.75 kB / 365.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.1446, allocations: 4 kB / 365.9 MB, free: 5.754 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,$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.0001575/0.1448, allocations: 165.7 kB / 366 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.1448, allocations: 15.81 kB / 366 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.1449, allocations: 13.39 kB / 366 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1449, allocations: 4 kB / 366 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1449, allocations: 0 / 366 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1449, allocations: 0 / 366 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.1451, allocations: 221.5 kB / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1451, allocations: 0 / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-05/0.1452, allocations: 11.98 kB / 366.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1452, allocations: 11.94 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.1452, allocations: 0 / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1452, allocations: 4 kB / 366.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1453, allocations: 0 / 366.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.1457, allocations: 277.9 kB / 366.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.059e-05/0.1458, allocations: 96.86 kB / 366.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.208e-05/0.1458, allocations: 8 kB / 366.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.1459, allocations: 7.984 kB / 366.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.146, allocations: 23.91 kB / 366.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.1461, allocations: 8 kB / 366.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.1463, allocations: 137.2 kB / 366.8 MB, free: 4.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1463, allocations: 3.938 kB / 366.8 MB, free: 4.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000755/0.1471, allocations: 119.9 kB / 367 MB, free: 4.535 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 (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.001054/0.1481, allocations: 324.5 kB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006922/0.1488, allocations: 211.8 kB / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1488, allocations: 0 / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.1491, allocations: 67.91 kB / 367.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.1493, allocations: 14.75 kB / 367.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007943/0.1501, allocations: 312.1 kB / 367.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.1506, allocations: 0.724 MB / 368.6 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.1507, allocations: 17.42 kB / 368.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.733e-05/0.1508, allocations: 15.44 kB / 368.6 MB, free: 2.824 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1508, allocations: 0 / 368.6 MB, free: 2.824 MB / 302.1 MB Notification: Performance of Templates: time 0.2225/0.3733, allocations: 3.344 MB / 372 MB, free: 19.27 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","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches