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.001371/0.00137, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001616/0.001616, allocations: 192 kB / 18.63 MB, free: 4.508 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.445/1.445, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001189, allocations: 50.89 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1199, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003651/0.1236, allocations: 1.526 MB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002651/0.1262, allocations: 1.431 MB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1264, allocations: 0 / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.1265, allocations: 11.88 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1267, allocations: 19.8 kB / 354.5 MB, free: 0.6875 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.001498/0.1282, allocations: 390.8 kB / 354.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.1284, allocations: 139.5 kB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.885e-05/0.1285, allocations: 9.5 kB / 355 MB, free: 156 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.1286, allocations: 51.78 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006968/0.1293, allocations: 89.48 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.1294, allocations: 12 kB / 355.2 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007049/0.1301, allocations: 399.4 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.1302, allocations: 35.84 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.496e-05/0.1303, allocations: 71.56 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006356/0.1309, allocations: 391 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1309, allocations: 0 / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1309, allocations: 4 kB / 356 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1309, allocations: 3.938 kB / 356.1 MB, free: 15.12 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.0007444/0.1317, allocations: 0.5142 MB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1317, allocations: 8.031 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.132, allocations: 32.73 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.1321, allocations: 209.7 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.1322, allocations: 3.938 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.1322, allocations: 15.98 kB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.1324, allocations: 132.1 kB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1325, allocations: 0 / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1325, allocations: 0 / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1325, allocations: 4 kB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.1327, allocations: 63.89 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007528/0.1334, allocations: 0.5477 MB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.1339, allocations: 151.7 kB / 357.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.1341, allocations: 62.62 kB / 357.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.1341, allocations: 3.984 kB / 357.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.1344, allocations: 153.8 kB / 357.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.1344, allocations: 0 / 357.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005354/0.1349, allocations: 249.4 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.135, allocations: 122.9 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.1352, allocations: 202.9 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.1353, allocations: 45.69 kB / 358.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.1353, allocations: 112.5 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.1354, allocations: 43.53 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.1355, allocations: 57.69 kB / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1356, allocations: 334.8 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.1358, allocations: 103.8 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.136, allocations: 139.7 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.1363, allocations: 228.2 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1364, allocations: 0 / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004724/0.1368, allocations: 305.2 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1369, allocations: 8 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.1369, allocations: 0 / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1369, allocations: 3.984 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.137, allocations: 36.02 kB / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1371, allocations: 0 / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.806e-05/0.1371, allocations: 19.84 kB / 359.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1372, allocations: 11.98 kB / 359.9 MB, free: 10.94 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.0001207/0.1373, allocations: 149.8 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.1373, allocations: 15.81 kB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.567e-05/0.1374, allocations: 17.41 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1374, allocations: 11.88 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.1374, allocations: 7.938 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1374, allocations: 0 / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.1376, allocations: 213.5 kB / 360.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1376, allocations: 7.922 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.294e-05/0.1377, allocations: 8 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1377, allocations: 4 kB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1377, allocations: 7.984 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1377, allocations: 3.938 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1377, allocations: 4 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.1381, allocations: 237 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1381, allocations: 92.86 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.1382, allocations: 15.98 kB / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.1382, allocations: 7.938 kB / 360.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.1383, allocations: 23.97 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.1383, allocations: 4 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1384, allocations: 141.2 kB / 360.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1384, allocations: 0 / 360.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.1388, allocations: 116 kB / 361 MB, free: 9.773 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.0006579/0.1395, allocations: 327.4 kB / 361.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004154/0.1399, allocations: 207.7 kB / 361.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1399, allocations: 0 / 361.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1401, allocations: 63.91 kB / 361.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.1402, allocations: 8 kB / 361.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004393/0.1407, allocations: 273.2 kB / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.1409, allocations: 0.7164 MB / 362.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.153e-05/0.141, allocations: 21.41 kB / 362.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.1411, allocations: 19.44 kB / 362.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1411, allocations: 0 / 362.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of Templates: time 0.00653/0.1476, allocations: 3.47 MB / 366.1 MB, free: 4.66 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/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