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.0009956/0.0009956, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 8 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001676/0.124, allocations: 1.281 MB / 360.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002352/0.1263, allocations: 1.516 MB / 362.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.1264, allocations: 4 kB / 362.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.754e-05/0.1265, allocations: 7.938 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.568e-05/0.1266, allocations: 15.8 kB / 362.1 MB, free: 10.45 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.0007972/0.1274, allocations: 311.2 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001525/0.1276, allocations: 131.5 kB / 362.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.61e-05/0.1277, allocations: 9.484 kB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.369e-05/0.1277, allocations: 55.77 kB / 362.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006088/0.1283, allocations: 78.22 kB / 362.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.1284, allocations: 4 kB / 362.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006557/0.129, allocations: 459 kB / 363.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.122e-05/0.1291, allocations: 23.92 kB / 363.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.1292, allocations: 97.2 kB / 363.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.1298, allocations: 411.2 kB / 363.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1298, allocations: 0 / 363.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1298, allocations: 0 / 363.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1298, allocations: 0 / 363.6 MB, free: 8.887 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.0007625/0.1306, allocations: 494.8 kB / 364.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1306, allocations: 16.02 kB / 364.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.1308, allocations: 32.73 kB / 364.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.131, allocations: 209.7 kB / 364.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.1311, allocations: 4.375 kB / 364.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.1311, allocations: 12.12 kB / 364.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.1314, allocations: 130.6 kB / 364.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.1314, allocations: 0 / 364.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.1314, allocations: 8 kB / 364.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1314, allocations: 0 / 364.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.1316, allocations: 71.89 kB / 364.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008697/0.1325, allocations: 0.5478 MB / 365.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.1329, allocations: 171.7 kB / 365.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.1331, allocations: 70.61 kB / 365.4 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.1332, allocations: 4 kB / 365.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003034/0.1335, allocations: 161.8 kB / 365.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.1335, allocations: 0 / 365.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006148/0.1341, allocations: 273.4 kB / 365.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.1342, allocations: 122.7 kB / 365.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.1344, allocations: 199 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.1344, allocations: 45.69 kB / 366.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.134e-05/0.1345, allocations: 112.5 kB / 366.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.1346, allocations: 39.55 kB / 366.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.1346, allocations: 33.7 kB / 366.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1348, allocations: 334.8 kB / 366.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.135, allocations: 104 kB / 366.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.1352, allocations: 147.2 kB / 366.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.1357, allocations: 240.2 kB / 367.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1357, allocations: 0 / 367.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000538/0.1363, allocations: 313.2 kB / 367.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1363, allocations: 4 kB / 367.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.1363, allocations: 4 kB / 367.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1363, allocations: 3.938 kB / 367.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.1365, allocations: 31.97 kB / 367.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.788e-05/0.1365, allocations: 4 kB / 367.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.004e-05/0.1366, allocations: 23.94 kB / 367.5 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.1366, allocations: 11.98 kB / 367.5 MB, free: 4.664 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.00014/0.1368, allocations: 158.8 kB / 367.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.1368, allocations: 19.75 kB / 367.7 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.1369, allocations: 17.41 kB / 367.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1369, allocations: 0 / 367.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1369, allocations: 4 kB / 367.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1369, allocations: 7.938 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.1371, allocations: 209.5 kB / 367.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1371, allocations: 0 / 367.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.291e-05/0.1372, allocations: 19.92 kB / 368 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1372, allocations: 0 / 368 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1372, allocations: 4 kB / 368 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1372, allocations: 7.984 kB / 368 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1372, allocations: 4 kB / 368 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000446/0.1377, allocations: 242.5 kB / 368.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.1378, allocations: 92.86 kB / 368.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.1378, allocations: 15.98 kB / 368.3 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.355e-05/0.1379, allocations: 12 kB / 368.3 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.138, allocations: 19.91 kB / 368.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.138, allocations: 4 kB / 368.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.1381, allocations: 137.3 kB / 368.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1381, allocations: 3.938 kB / 368.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000481/0.1386, allocations: 128 kB / 368.6 MB, free: 3.48 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.000813/0.1394, allocations: 316.6 kB / 368.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005473/0.14, allocations: 211.8 kB / 369.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.14, allocations: 0 / 369.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.1402, allocations: 68.22 kB / 369.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.1404, allocations: 18.42 kB / 369.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005368/0.1409, allocations: 319.9 kB / 369.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.1412, allocations: 0.7162 MB / 370.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.817e-05/0.1413, allocations: 25.41 kB / 370.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.1414, allocations: 19.42 kB / 370.3 MB, free: 1.762 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1414, allocations: 0 / 370.3 MB, free: 1.762 MB / 302.1 MB Notification: Performance of Templates: time 0.1859/0.3273, allocations: 3.376 MB / 373.7 MB, free: 18.68 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