Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise") translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002064/0.002064, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002724/0.002724, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.544/1.544, allocations: 230.4 MB / 251.1 MB, free: 8.492 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 64.08 kB / 369 MB, free: 6.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2827, allocations: 53.3 MB / 422.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002619/0.2853, allocations: 1.507 MB / 423.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.2864, allocations: 0.5692 MB / 424.3 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.889e-05/0.2864, allocations: 3.938 kB / 424.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.521e-05/0.2865, allocations: 11.86 kB / 424.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.379e-05/0.2866, allocations: 19.81 kB / 424.4 MB, free: 5.734 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.0005261/0.2871, allocations: 147.6 kB / 424.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.2873, allocations: 111.7 kB / 424.6 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.541e-05/0.2873, allocations: 9.109 kB / 424.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.37e-05/0.2874, allocations: 47.78 kB / 424.7 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005872/0.288, allocations: 80.84 kB / 424.8 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.288, allocations: 12 kB / 424.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.2882, allocations: 119.8 kB / 424.9 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.269e-05/0.2883, allocations: 31.91 kB / 424.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.2884, allocations: 59.61 kB / 425 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.2887, allocations: 186.7 kB / 425.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.2887, allocations: 7.984 kB / 425.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2887, allocations: 0 / 425.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.2887, allocations: 0 / 425.2 MB, free: 4.945 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007176/0.2894, allocations: 470.5 kB / 425.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2895, allocations: 8.031 kB / 425.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/0.2898, allocations: 36.83 kB / 425.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.29, allocations: 200.2 kB / 425.9 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.29, allocations: 4.312 kB / 425.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.29, allocations: 12.36 kB / 425.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.2902, allocations: 115.5 kB / 426 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2902, allocations: 0 / 426 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.2902, allocations: 4 kB / 426 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2903, allocations: 0 / 426 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.2904, allocations: 63.89 kB / 426.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006765/0.2911, allocations: 373.5 kB / 426.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.2914, allocations: 125 kB / 426.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.2915, allocations: 49.77 kB / 426.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2915, allocations: 0 / 426.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.2918, allocations: 141 kB / 426.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.02e-07/0.2918, allocations: 0 / 426.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005113/0.2923, allocations: 237.6 kB / 427 MB, free: 2.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.2924, allocations: 93.09 kB / 427.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.2926, allocations: 174.3 kB / 427.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.2926, allocations: 45.7 kB / 427.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.2927, allocations: 104.6 kB / 427.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.955e-05/0.2927, allocations: 47.67 kB / 427.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.364e-05/0.2928, allocations: 53.92 kB / 427.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.293, allocations: 330.8 kB / 427.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.2931, allocations: 104.4 kB / 427.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.2934, allocations: 131.5 kB / 428 MB, free: 1.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.2937, allocations: 210.9 kB / 428.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2937, allocations: 0 / 428.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004733/0.2942, allocations: 285.4 kB / 428.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.2942, allocations: 4 kB / 428.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2942, allocations: 8.062 kB / 428.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.2942, allocations: 7.875 kB / 428.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.2944, allocations: 27.98 kB / 428.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.2944, allocations: 4 kB / 428.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.001e-05/0.2945, allocations: 27.77 kB / 428.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.2945, allocations: 12 kB / 428.6 MB, free: 1.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1],uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001508/0.2946, allocations: 153.8 kB / 428.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.2946, allocations: 11.91 kB / 428.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.2947, allocations: 13.41 kB / 428.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2947, allocations: 4 kB / 428.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2947, allocations: 0 / 428.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2947, allocations: 3.984 kB / 428.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.2949, allocations: 213.5 kB / 429 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2949, allocations: 0 / 429 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.471e-05/0.2949, allocations: 11.98 kB / 429 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.295, allocations: 0 / 429 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.295, allocations: 7.938 kB / 429 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.295, allocations: 4 kB / 429 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.295, allocations: 480 / 429 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.2953, allocations: 217.8 kB / 429.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.079e-05/0.2954, allocations: 92.95 kB / 429.3 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.2954, allocations: 15.98 kB / 429.3 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.584e-05/0.2955, allocations: 4 kB / 429.3 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.2955, allocations: 11.98 kB / 429.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.2955, allocations: 4 kB / 429.4 MB, free: 376 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.2956, allocations: 136.2 kB / 429.5 MB, free: 240 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2956, allocations: 0 / 429.5 MB, free: 240 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.2959, allocations: 47.92 kB / 429.5 MB, free: 192 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0004618/0.2964, allocations: 213.1 kB / 429.7 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.2968, allocations: 175.8 kB / 429.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2968, allocations: 128 / 429.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.2969, allocations: 59.91 kB / 430 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001609/0.2971, allocations: 11.94 kB / 430 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.2975, allocations: 243.7 kB / 430.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.2978, allocations: 0.708 MB / 430.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.506e-05/0.2979, allocations: 20.88 kB / 431 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.298, allocations: 19.42 kB / 431 MB, free: 14.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.298, allocations: 0 / 431 MB, free: 14.71 MB / 350.1 MB Notification: Performance of Templates: time 0.005559/0.3035, allocations: 2.001 MB / 433 MB, free: 12.72 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches