Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise") translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001021, allocations: 195.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.6 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007831/0.000783, allocations: 97.09 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002802, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2582, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.001255/0.2595, allocations: 1.21 MB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007901/0.2603, allocations: 0.5641 MB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.2603, allocations: 0 / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.128e-05/0.2604, allocations: 3.938 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.251e-05/0.2605, allocations: 19.86 kB / 409.8 MB, free: 25.89 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.0004278/0.2609, allocations: 115.7 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.523e-05/0.2611, allocations: 95.7 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.791e-05/0.2611, allocations: 18.92 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.74e-05/0.2612, allocations: 47.77 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004406/0.2616, allocations: 59.75 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.2617, allocations: 4 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.2618, allocations: 95.91 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.319e-05/0.2619, allocations: 37.05 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.262, allocations: 69.44 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.2621, allocations: 143.7 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2621, allocations: 2.281 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2622, allocations: 0 / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.2622, allocations: 0 / 410.5 MB, free: 25.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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005033/0.2627, allocations: 428.7 kB / 410.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.2627, allocations: 12.03 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.263, allocations: 42.47 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2631, allocations: 200 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.2631, allocations: 9.156 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.2632, allocations: 8.375 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.2634, allocations: 119 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2634, allocations: 0 / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.2634, allocations: 0 / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.2634, allocations: 0 / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.2636, allocations: 72.61 kB / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.2641, allocations: 377.4 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.2644, allocations: 145.2 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.2646, allocations: 57.69 kB / 412 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.2646, allocations: 0 / 412 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.2648, allocations: 152.3 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.2648, allocations: 0 / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004249/0.2652, allocations: 241.3 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.2653, allocations: 97.05 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2654, allocations: 179.3 kB / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.2654, allocations: 49.69 kB / 412.7 MB, free: 22.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.576e-05/0.2655, allocations: 104.5 kB / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.2655, allocations: 43.48 kB / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.2655, allocations: 4 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.423e-05/0.2656, allocations: 330.8 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.2658, allocations: 104.5 kB / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.2659, allocations: 128.4 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.2662, allocations: 215.5 kB / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2662, allocations: 0 / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000377/0.2666, allocations: 309.1 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2666, allocations: 8.062 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2666, allocations: 96 / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2667, allocations: 7.984 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.2668, allocations: 27.98 kB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2668, allocations: 0 / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.2669, allocations: 27.83 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.2669, allocations: 7.984 kB / 414 MB, free: 21.51 MB / 298.7 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,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.267, allocations: 149.9 kB / 414.1 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.267, allocations: 19.81 kB / 414.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.505e-05/0.2671, allocations: 13.41 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2671, allocations: 0 / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2671, allocations: 0 / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2671, allocations: 0 / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.2672, allocations: 217.5 kB / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2672, allocations: 0 / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.523e-05/0.2673, allocations: 15.94 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2673, allocations: 0 / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.2673, allocations: 3.984 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2673, allocations: 4 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2673, allocations: 0 / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002722/0.2676, allocations: 225.7 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.2676, allocations: 92.86 kB / 414.7 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.2677, allocations: 12 kB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.27e-05/0.2677, allocations: 7.984 kB / 414.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.2678, allocations: 11.98 kB / 414.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.2678, allocations: 4 kB / 414.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.582e-05/0.2679, allocations: 135.1 kB / 414.8 MB, free: 20.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.2679, allocations: 4 kB / 414.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.2681, allocations: 51.94 kB / 414.9 MB, free: 20.46 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003503/0.2685, allocations: 200.5 kB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.2688, allocations: 195.8 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2688, allocations: 0 / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.2689, allocations: 72.03 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.2691, allocations: 15.61 kB / 415.4 MB, free: 20.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.2695, allocations: 293 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2696, allocations: 0.7083 MB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.2696, allocations: 19.44 kB / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2697, allocations: 0 / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of Templates: time 0.003176/0.2728, allocations: 2.283 MB / 418.7 MB, free: 16.65 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches