Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise") translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.001325, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001451/0.001451, allocations: 184.5 kB / 18.67 MB, free: 4.398 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.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 47.94 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3152, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002594/0.3178, allocations: 1.475 MB / 402.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3189, allocations: 0.579 MB / 403.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.277e-05/0.319, allocations: 0 / 403.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.386e-05/0.3191, allocations: 7.875 kB / 403.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.173e-05/0.3191, allocations: 23.78 kB / 403.5 MB, free: 6.766 MB / 318.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.000505/0.3197, allocations: 139.6 kB / 403.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.3198, allocations: 115.7 kB / 403.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.3199, allocations: 17.09 kB / 403.8 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.581e-05/0.3199, allocations: 51.77 kB / 403.8 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.3204, allocations: 63.27 kB / 403.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.3205, allocations: 8 kB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.3207, allocations: 115.8 kB / 404 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.158e-05/0.3207, allocations: 35.84 kB / 404 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.826e-05/0.3208, allocations: 51.67 kB / 404.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.3211, allocations: 196.9 kB / 404.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3211, allocations: 4 kB / 404.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3211, allocations: 0 / 404.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3211, allocations: 0 / 404.3 MB, free: 5.988 MB / 318.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.0005983/0.3217, allocations: 454.5 kB / 404.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3218, allocations: 12.03 kB / 404.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.3221, allocations: 44.64 kB / 404.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.3223, allocations: 192.1 kB / 405 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.3223, allocations: 12.12 kB / 405 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3223, allocations: 11.94 kB / 405 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.3225, allocations: 111.3 kB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3226, allocations: 0 / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3226, allocations: 7.938 kB / 405.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3226, allocations: 0 / 405.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.3227, allocations: 51.95 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006053/0.3234, allocations: 377.4 kB / 405.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003003/0.3237, allocations: 133.1 kB / 405.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.3238, allocations: 49.77 kB / 405.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.3238, allocations: 4 kB / 405.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.3241, allocations: 145 kB / 405.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.3241, allocations: 0 / 405.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004906/0.3246, allocations: 233.5 kB / 406.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.3246, allocations: 93.09 kB / 406.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.3248, allocations: 170.4 kB / 406.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.3248, allocations: 41.69 kB / 406.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.3249, allocations: 116.5 kB / 406.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.325, allocations: 43.47 kB / 406.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.325, allocations: 57.92 kB / 406.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3252, allocations: 330.8 kB / 406.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.3254, allocations: 100.5 kB / 407 MB, free: 3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3256, allocations: 125.1 kB / 407.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.3259, allocations: 215.4 kB / 407.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3259, allocations: 0 / 407.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004712/0.3264, allocations: 293.4 kB / 407.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.3264, allocations: 4 kB / 407.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3264, allocations: 8.047 kB / 407.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3265, allocations: 4 kB / 407.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.3266, allocations: 27.92 kB / 407.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.3266, allocations: 3.938 kB / 407.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.3267, allocations: 27.73 kB / 407.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3267, allocations: 4.469 kB / 407.7 MB, free: 2.281 MB / 318.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.0001322/0.3269, allocations: 149.8 kB / 407.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.3269, allocations: 15.81 kB / 407.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.013e-05/0.3269, allocations: 13.41 kB / 407.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3269, allocations: 0 / 407.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3269, allocations: 3.938 kB / 407.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.327, allocations: 4 kB / 407.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.3271, allocations: 209.5 kB / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3271, allocations: 0 / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.469e-05/0.3272, allocations: 8 kB / 408.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3272, allocations: 3.938 kB / 408.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3272, allocations: 7.922 kB / 408.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3272, allocations: 8 kB / 408.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3272, allocations: 3.938 kB / 408.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.3276, allocations: 225.7 kB / 408.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.3276, allocations: 92.86 kB / 408.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.3277, allocations: 4 kB / 408.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.419e-05/0.3277, allocations: 11.98 kB / 408.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.3278, allocations: 19.92 kB / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.3278, allocations: 0 / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.805e-05/0.3279, allocations: 136.2 kB / 408.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3279, allocations: 0 / 408.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.3282, allocations: 47.98 kB / 408.6 MB, free: 1.23 MB / 318.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.000414/0.3286, allocations: 208.8 kB / 408.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003767/0.329, allocations: 183.8 kB / 409 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.329, allocations: 0 / 409 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.3292, allocations: 68.03 kB / 409.1 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001628/0.3293, allocations: 8.188 kB / 409.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004815/0.3298, allocations: 281.5 kB / 409.4 MB, free: 500 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.3301, allocations: 0.7119 MB / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.039e-05/0.3302, allocations: 11.44 kB / 410.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of SimCode: time 1.582e-06/0.3302, allocations: 4 kB / 410.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of Templates: time 0.004684/0.3349, allocations: 2.337 MB / 412.4 MB, free: 13.4 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches