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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9747/0.9747, allocations: 173.4 MB / 201.1 MB, free: 9.367 MB / 186.7 MB " [Timeout remaining time 179] 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=5101,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=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.698e-05/1.845e-05, allocations: 2.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002126/0.002144, allocations: 1.543 MB / 269.5 MB, free: 4.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.004067, allocations: 1.403 MB / 270.9 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.938e-05/0.004156, allocations: 4 kB / 271 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.004284, allocations: 7.875 kB / 271 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.004389, allocations: 27.72 kB / 271 MB, free: 3.457 MB / 250.7 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.001046/0.005435, allocations: 402.5 kB / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.005601, allocations: 139.5 kB / 271.5 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.819e-05/0.005649, allocations: 5.688 kB / 271.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.608e-05/0.005735, allocations: 79.8 kB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004098/0.006145, allocations: 94.11 kB / 271.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.006182, allocations: 12 kB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000606/0.006788, allocations: 427 kB / 272.1 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.006845, allocations: 35.84 kB / 272.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.006894, allocations: 39.84 kB / 272.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005615/0.007456, allocations: 430.7 kB / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.007459, allocations: 0 / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.007459, allocations: 0 / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.007464, allocations: 3.938 kB / 272.6 MB, free: 1.828 MB / 250.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.0006244/0.008089, allocations: 0.5304 MB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.008142, allocations: 12.92 kB / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.008348, allocations: 40.7 kB / 273.2 MB, free: 1.211 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.008494, allocations: 161.9 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.008515, allocations: 8.359 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.008531, allocations: 15.94 kB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.008726, allocations: 100.6 kB / 273.5 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.008736, allocations: 0 / 273.5 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.008755, allocations: 4 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.008763, allocations: 0 / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.872e-05/0.008822, allocations: 23.92 kB / 273.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.009411, allocations: 0.6067 MB / 274.1 MB, free: 204 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.009564, allocations: 117.2 kB / 274.2 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.375e-05/0.009607, allocations: 35.11 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.009617, allocations: 4.047 kB / 274.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.009783, allocations: 131.9 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.009784, allocations: 0 / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002954/0.01008, allocations: 169.6 kB / 274.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.01014, allocations: 114.8 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.01029, allocations: 250.6 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.01032, allocations: 45.69 kB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.148e-05/0.01039, allocations: 159.5 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.01043, allocations: 39.69 kB / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.638e-05/0.01049, allocations: 67.34 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.01064, allocations: 0.5078 MB / 275.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.41e-05/0.0107, allocations: 35.98 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.448e-05/0.01078, allocations: 94.5 kB / 275.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.01094, allocations: 119.2 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01094, allocations: 0 / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002209/0.01117, allocations: 205.4 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.01118, allocations: 4 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.01119, allocations: 4 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.0112, allocations: 0 / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.01132, allocations: 47.91 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.01133, allocations: 4 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.151e-05/0.01137, allocations: 19.83 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.01139, allocations: 8 kB / 276.3 MB, free: 13.85 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.0003107/0.0117, allocations: 192.7 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.01172, allocations: 19.86 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.01175, allocations: 21.45 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.01175, allocations: 4 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.01176, allocations: 0 / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.01176, allocations: 3.938 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.0119, allocations: 160.5 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.0119, allocations: 4 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.378e-05/0.01193, allocations: 7.984 kB / 276.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.01193, allocations: 8 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.01194, allocations: 0 / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.01194, allocations: 0 / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.01195, allocations: 4 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/0.01215, allocations: 205.2 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.01217, allocations: 15.91 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.01219, allocations: 11.98 kB / 276.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.651e-05/0.01222, allocations: 4 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.01227, allocations: 11.98 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.01228, allocations: 7.984 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.899e-05/0.01236, allocations: 181 kB / 277.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01236, allocations: 0 / 277.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003758/0.01273, allocations: 123.6 kB / 277.2 MB, free: 12.81 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.000585/0.01332, allocations: 368.2 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002128/0.01353, allocations: 107.6 kB / 277.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01353, allocations: 3.938 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.77e-05/0.01359, allocations: 43.61 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.01376, allocations: 16.23 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003838/0.01414, allocations: 276 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.413e-05/0.01418, allocations: 75.64 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.305e-05/0.01423, allocations: 21.47 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.01426, allocations: 16.5 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01426, allocations: 0 / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of Templates: time 0.006586/0.02085, allocations: 4.095 MB / 282.2 MB, free: 7.793 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9627012871205807]