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.000819/0.000819, allocations: 80.36 kB / 20.67 MB, free: 3.891 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.0008524/0.0008524, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 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 0.87/0.87, allocations: 177 MB / 204.1 MB, free: 5.715 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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.335e-05, allocations: 2.281 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002107/0.00213, allocations: 1.529 MB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.0038, allocations: 1.398 MB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.299e-05/0.003863, allocations: 0 / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.507e-05/0.003959, allocations: 11.88 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.123e-05/0.00404, allocations: 31.72 kB / 327.5 MB, free: 12.88 MB / 298.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.0009695/0.005009, allocations: 402.5 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.005171, allocations: 139.5 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.952e-05/0.00523, allocations: 5.688 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.065e-05/0.005311, allocations: 75.8 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.005754, allocations: 81.95 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.005778, allocations: 12 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005221/0.0063, allocations: 431 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.972e-05/0.00635, allocations: 39.83 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.006395, allocations: 39.84 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004826/0.006878, allocations: 470.6 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.00688, allocations: 0 / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006881, allocations: 0 / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.006887, allocations: 4 kB / 329.2 MB, free: 11.21 MB / 298.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.0005429/0.00743, allocations: 448.8 kB / 329.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.007466, allocations: 15.98 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.973e-05/0.007526, allocations: 46.61 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.007655, allocations: 40.78 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.007768, allocations: 147.5 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.007786, allocations: 8.359 kB / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.007801, allocations: 8.375 kB / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.00798, allocations: 132.8 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.007987, allocations: 4.172 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.007998, allocations: 12.12 kB / 330 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.008002, allocations: 0 / 330 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.008121, allocations: 67.89 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004789/0.0086, allocations: 0.5 MB / 330.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.008786, allocations: 143.8 kB / 330.7 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.215e-05/0.008858, allocations: 62.61 kB / 330.8 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.008868, allocations: 3.938 kB / 330.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.009046, allocations: 149.8 kB / 330.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.143e-06/0.009047, allocations: 4 kB / 330.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003373/0.009384, allocations: 257.4 kB / 331.2 MB, free: 8.992 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.009432, allocations: 118.8 kB / 331.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.009555, allocations: 199 kB / 331.5 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.00958, allocations: 45.69 kB / 331.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.832e-05/0.009628, allocations: 116.6 kB / 331.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/0.009656, allocations: 43.69 kB / 331.7 MB, free: 8.438 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.00971, allocations: 57.69 kB / 331.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.27e-05/0.009793, allocations: 338.7 kB / 332.1 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.009908, allocations: 99.94 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.01003, allocations: 143.9 kB / 332.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.01024, allocations: 223.7 kB / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01025, allocations: 0 / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002889/0.01054, allocations: 297.5 kB / 332.8 MB, free: 7.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.978e-06/0.01055, allocations: 8 kB / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.01055, allocations: 0 / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.01056, allocations: 4 kB / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.01064, allocations: 35.91 kB / 332.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.01064, allocations: 4 kB / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.01069, allocations: 23.83 kB / 332.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.0107, allocations: 11.98 kB / 332.9 MB, free: 7.172 MB / 298.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,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],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]) * 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 9.511e-05/0.0108, allocations: 157.7 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.01081, allocations: 15.89 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.236e-05/0.01083, allocations: 13.47 kB / 333.1 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.01084, allocations: 4.094 kB / 333.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.01084, allocations: 3.938 kB / 333.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01084, allocations: 3.984 kB / 333.1 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.01097, allocations: 180.6 kB / 333.3 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.01097, allocations: 0 / 333.3 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.372e-05/0.01099, allocations: 11.98 kB / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.01099, allocations: 0 / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.011, allocations: 16 kB / 333.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.01101, allocations: 0 / 333.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01101, allocations: 0 / 333.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.01123, allocations: 238.5 kB / 333.5 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.946e-05/0.01125, allocations: 23.83 kB / 333.6 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.01127, allocations: 8 kB / 333.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.924e-05/0.0113, allocations: 7.984 kB / 333.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.01134, allocations: 15.98 kB / 333.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.01135, allocations: 11.98 kB / 333.6 MB, free: 6.402 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.14e-05/0.01142, allocations: 137.2 kB / 333.7 MB, free: 6.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01142, allocations: 0 / 333.7 MB, free: 6.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002677/0.01169, allocations: 123.6 kB / 333.9 MB, free: 6.148 MB / 298.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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.000876/0.01256, allocations: 1.094 MB / 335 MB, free: 5.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.01285, allocations: 191.7 kB / 335.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.01286, allocations: 0 / 335.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.521e-05/0.01293, allocations: 59.91 kB / 335.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.01305, allocations: 8 kB / 335.2 MB, free: 4.797 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.01593, allocations: 2.321 MB / 337.5 MB, free: 2.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.758e-05/0.01601, allocations: 107.4 kB / 337.6 MB, free: 2.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.175e-05/0.0161, allocations: 21.42 kB / 337.7 MB, free: 2.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.01618, allocations: 56.41 kB / 337.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01618, allocations: 0 / 337.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.0381, allocations: 6.371 MB / 344.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.022/7.06, allocations: 4 kB / 344.1 MB, free: 11.87 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.696692910976708]