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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001188, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.13/1.13, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] 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=5101,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=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.21e-05/3.404e-05, allocations: 2.312 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00287/0.002904, allocations: 1.573 MB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.005414, allocations: 1.437 MB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.643e-05/0.00551, allocations: 0 / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.005642, allocations: 15.81 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.005761, allocations: 27.73 kB / 276 MB, free: 14.36 MB / 266.7 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.001321/0.007082, allocations: 402.5 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.007279, allocations: 139.5 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.758e-05/0.007337, allocations: 5.688 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.007446, allocations: 79.8 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006059/0.008052, allocations: 88.52 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.575e-05/0.008087, allocations: 12 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008206/0.008908, allocations: 438.9 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.008976, allocations: 35.89 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.78e-05/0.009043, allocations: 39.84 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007164/0.00976, allocations: 434.6 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.009764, allocations: 0 / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.009766, allocations: 0 / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.009773, allocations: 0 / 277.6 MB, free: 12.73 MB / 266.7 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.0008462/0.01062, allocations: 0.542 MB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.01067, allocations: 15.98 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/0.01092, allocations: 32.83 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.01111, allocations: 178.3 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.01113, allocations: 4.375 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.01116, allocations: 8.375 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.01138, allocations: 97.27 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.01139, allocations: 192 / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.01141, allocations: 4.375 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.01142, allocations: 7.938 kB / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.393e-05/0.01149, allocations: 27.91 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006784/0.01217, allocations: 0.599 MB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.01237, allocations: 117.2 kB / 279.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.783e-05/0.01244, allocations: 39.11 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.01245, allocations: 7.938 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.01265, allocations: 132 kB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.01265, allocations: 4 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003812/0.01303, allocations: 165.6 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.0131, allocations: 118.7 kB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.0133, allocations: 246.7 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.01334, allocations: 41.7 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.931e-05/0.01342, allocations: 159.3 kB / 280.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.01346, allocations: 43.67 kB / 280.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.021e-05/0.01355, allocations: 71.34 kB / 280.2 MB, free: 9.816 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.0137, allocations: 0.504 MB / 280.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.642e-05/0.01378, allocations: 32.11 kB / 280.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.0139, allocations: 87.31 kB / 280.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.01409, allocations: 127.2 kB / 281 MB, free: 9.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.01409, allocations: 0 / 281 MB, free: 9.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003241/0.01441, allocations: 209.3 kB / 281.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.01443, allocations: 4 kB / 281.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.01444, allocations: 4 kB / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.01446, allocations: 4.094 kB / 281.2 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.01464, allocations: 43.97 kB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.01465, allocations: 4.469 kB / 281.2 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.562e-05/0.01472, allocations: 23.78 kB / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.01474, allocations: 11.94 kB / 281.3 MB, free: 8.723 MB / 266.7 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.0001334/0.01487, allocations: 184.6 kB / 281.5 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.0149, allocations: 19.84 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.01495, allocations: 17.47 kB / 281.5 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.01495, allocations: 11.98 kB / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01496, allocations: 0 / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.01496, allocations: 3.938 kB / 281.5 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.01513, allocations: 156.5 kB / 281.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.01513, allocations: 4 kB / 281.7 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.282e-05/0.01518, allocations: 7.938 kB / 281.7 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.01518, allocations: 4 kB / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.01519, allocations: 0 / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.0152, allocations: 3.984 kB / 281.7 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.0152, allocations: 4 kB / 281.7 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.01545, allocations: 206.7 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/0.01549, allocations: 27.77 kB / 281.9 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.01552, allocations: 8 kB / 281.9 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.653e-05/0.01556, allocations: 7.984 kB / 281.9 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.241e-05/0.01563, allocations: 11.98 kB / 281.9 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-06/0.01563, allocations: 4 kB / 281.9 MB, free: 7.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.01574, allocations: 177 kB / 282.1 MB, free: 7.809 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01574, allocations: 0 / 282.1 MB, free: 7.809 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000496/0.01624, allocations: 127.6 kB / 282.2 MB, free: 7.684 MB / 266.7 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.0008548/0.01709, allocations: 358 kB / 282.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002584/0.01735, allocations: 116.4 kB / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01735, allocations: 0 / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.144e-05/0.01742, allocations: 47.05 kB / 282.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.01767, allocations: 19.92 kB / 282.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005183/0.01818, allocations: 272 kB / 283 MB, free: 6.863 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.965e-05/0.01823, allocations: 71.83 kB / 283.1 MB, free: 6.773 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.632e-05/0.0183, allocations: 25.72 kB / 283.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.853e-05/0.01835, allocations: 20.48 kB / 283.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.393e-06/0.01835, allocations: 0 / 283.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of Templates: time 0.007619/0.02597, allocations: 3.734 MB / 286.9 MB, free: 3.004 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1695340732112527]