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.001333/0.001333, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001453/0.001453, allocations: 192 kB / 18 MB, free: 5.219 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 47.86 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3545, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002708/0.3572, allocations: 1.472 MB / 402.2 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.3584, allocations: 0.579 MB / 402.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.178e-05/0.3585, allocations: 4 kB / 402.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.3586, allocations: 11.86 kB / 402.8 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.737e-05/0.3587, allocations: 15.81 kB / 402.8 MB, free: 6.793 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.0005819/0.3593, allocations: 143.6 kB / 403 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.3595, allocations: 115.6 kB / 403.1 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.657e-05/0.3595, allocations: 21.06 kB / 403.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.255e-05/0.3596, allocations: 43.84 kB / 403.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.3602, allocations: 74.09 kB / 403.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.3602, allocations: 8 kB / 403.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.3604, allocations: 111.8 kB / 403.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.3605, allocations: 35.84 kB / 403.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.954e-05/0.3605, allocations: 55.66 kB / 403.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.3608, allocations: 196.9 kB / 403.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3608, allocations: 4 kB / 403.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3609, allocations: 0 / 403.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3609, allocations: 0 / 403.6 MB, free: 6.004 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.0006458/0.3615, allocations: 458.5 kB / 404 MB, free: 5.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.3616, allocations: 8.031 kB / 404.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003038/0.3619, allocations: 44.72 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.362, allocations: 192.1 kB / 404.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.3621, allocations: 16.12 kB / 404.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.3621, allocations: 7.938 kB / 404.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.3623, allocations: 110.6 kB / 404.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3623, allocations: 3.938 kB / 404.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3624, allocations: 0 / 404.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3624, allocations: 0 / 404.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.3625, allocations: 63.95 kB / 404.5 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.3632, allocations: 369.4 kB / 404.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.3634, allocations: 129.1 kB / 405 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3636, allocations: 61.73 kB / 405 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.3636, allocations: 0 / 405 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.3638, allocations: 145.1 kB / 405.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.3639, allocations: 0 / 405.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005121/0.3644, allocations: 237.3 kB / 405.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.519e-05/0.3644, allocations: 89.09 kB / 405.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.3646, allocations: 170.4 kB / 405.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3647, allocations: 49.69 kB / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.3647, allocations: 108.5 kB / 405.8 MB, free: 3.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.3649, allocations: 39.55 kB / 405.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.933e-05/0.365, allocations: 57.88 kB / 405.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3651, allocations: 338.8 kB / 406.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.3653, allocations: 88.47 kB / 406.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.3655, allocations: 129.1 kB / 406.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.3658, allocations: 215.4 kB / 406.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3658, allocations: 0 / 406.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004838/0.3663, allocations: 289.3 kB / 406.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3664, allocations: 8 kB / 407 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3664, allocations: 4.062 kB / 407 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3664, allocations: 4 kB / 407 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3665, allocations: 35.91 kB / 407 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3666, allocations: 3.938 kB / 407 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.3666, allocations: 23.75 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3667, allocations: 4 kB / 407 MB, free: 2.301 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.0001453/0.3668, allocations: 145.8 kB / 407.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.3668, allocations: 23.81 kB / 407.2 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.3669, allocations: 17.39 kB / 407.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3669, allocations: 0 / 407.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.3669, allocations: 3.938 kB / 407.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3669, allocations: 0 / 407.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.3671, allocations: 205.5 kB / 407.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3671, allocations: 0 / 407.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.3672, allocations: 7.984 kB / 407.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.3672, allocations: 4 kB / 407.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3672, allocations: 7.875 kB / 407.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3672, allocations: 8 kB / 407.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3672, allocations: 3.938 kB / 407.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003358/0.3676, allocations: 221.7 kB / 407.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.3676, allocations: 92.86 kB / 407.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.3677, allocations: 15.98 kB / 407.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.287e-05/0.3677, allocations: 8 kB / 407.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.3678, allocations: 15.92 kB / 407.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3678, allocations: 7.984 kB / 407.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.935e-05/0.3679, allocations: 128.2 kB / 407.9 MB, free: 1.297 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3679, allocations: 0 / 407.9 MB, free: 1.297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.3682, allocations: 48 kB / 408 MB, free: 1.25 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.0004166/0.3686, allocations: 210.5 kB / 408.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.3691, allocations: 191.8 kB / 408.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3691, allocations: 0 / 408.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.3692, allocations: 64.09 kB / 408.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.3694, allocations: 4 kB / 408.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004781/0.3699, allocations: 243.9 kB / 408.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.3702, allocations: 0.708 MB / 409.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.517e-05/0.3703, allocations: 24.8 kB / 409.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.3703, allocations: 15.44 kB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3703, allocations: 0 / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of Templates: time 0.004962/0.3753, allocations: 1.98 MB / 411.4 MB, free: 13.79 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins/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