Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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: translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_trunk_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_Modelica.Blocks.Examples.Noise.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008185/0.0008185, allocations: 104.2 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008547/0.0008548, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003373, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1236, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.0018/0.1255, allocations: 1.215 MB / 359.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1266, allocations: 0.5655 MB / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.556e-05/0.1267, allocations: 4 kB / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.806e-05/0.1268, allocations: 11.86 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.611e-05/0.1269, allocations: 11.88 kB / 360.4 MB, free: 11.82 MB / 302.1 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.0005691/0.1275, allocations: 115.7 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.1276, allocations: 99.7 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.91e-05/0.1277, allocations: 13.09 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.027e-05/0.1277, allocations: 31.86 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.1279, allocations: 59.75 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.128, allocations: 12 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.1282, allocations: 103.8 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.1282, allocations: 23.91 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.69e-05/0.1283, allocations: 41.64 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.1285, allocations: 136 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1285, allocations: 0 / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1285, allocations: 0 / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1285, allocations: 0 / 361.1 MB, free: 11.19 MB / 302.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.0005777/0.1291, allocations: 438.7 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1291, allocations: 8.031 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002795/0.1294, allocations: 43.75 kB / 361.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.1296, allocations: 198.8 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.1296, allocations: 4 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.1297, allocations: 8 kB / 361.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.1299, allocations: 119.3 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1299, allocations: 0 / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.1299, allocations: 7.875 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1299, allocations: 4 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1301, allocations: 63.95 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000589/0.1307, allocations: 373.5 kB / 362.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.131, allocations: 145 kB / 362.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.1311, allocations: 65.75 kB / 362.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1312, allocations: 0 / 362.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.1314, allocations: 141 kB / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.032e-06/0.1314, allocations: 0 / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004941/0.1319, allocations: 253.5 kB / 362.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.132, allocations: 97.09 kB / 363 MB, free: 9.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.1322, allocations: 170.3 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.1322, allocations: 53.69 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.081e-05/0.1323, allocations: 100.6 kB / 363.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.496e-05/0.1323, allocations: 47.39 kB / 363.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.1323, allocations: 8 kB / 363.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1325, allocations: 330.8 kB / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.1326, allocations: 92.47 kB / 363.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1328, allocations: 144.3 kB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.133, allocations: 112 kB / 364 MB, free: 7.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.133, allocations: 0 / 364 MB, free: 7.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004604/0.1335, allocations: 297.8 kB / 364.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1335, allocations: 8 kB / 364.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.1336, allocations: 0 / 364.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1336, allocations: 0 / 364.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.1337, allocations: 35.92 kB / 364.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1337, allocations: 0 / 364.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.489e-05/0.1338, allocations: 23.95 kB / 364.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.1338, allocations: 12 kB / 364.4 MB, free: 7.59 MB / 302.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,$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.00013/0.134, allocations: 146.8 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.134, allocations: 19.77 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.134, allocations: 13.39 kB / 364.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.1341, allocations: 4 kB / 364.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1341, allocations: 0 / 364.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1341, allocations: 4 kB / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001809/0.1343, allocations: 213.5 kB / 364.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1343, allocations: 0 / 364.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.825e-05/0.1343, allocations: 11.98 kB / 364.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1343, allocations: 3.953 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1344, allocations: 0 / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1344, allocations: 11.88 kB / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1344, allocations: 0 / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.1347, allocations: 228.1 kB / 365 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.1348, allocations: 88.92 kB / 365.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.1348, allocations: 19.94 kB / 365.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.507e-05/0.1349, allocations: 8 kB / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1349, allocations: 15.97 kB / 365.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.1349, allocations: 0 / 365.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.341e-05/0.135, allocations: 132.2 kB / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.135, allocations: 0 / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000319/0.1354, allocations: 40 kB / 365.3 MB, free: 6.551 MB / 302.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 (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.0004376/0.1358, allocations: 215 kB / 365.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.1362, allocations: 199.8 kB / 365.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1362, allocations: 0 / 365.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1364, allocations: 71.89 kB / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.1365, allocations: 11.62 kB / 365.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004704/0.137, allocations: 271.1 kB / 366.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1373, allocations: 0.7082 MB / 366.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.831e-05/0.1373, allocations: 24.86 kB / 366.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.446e-05/0.1374, allocations: 11.44 kB / 366.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1374, allocations: 0 / 366.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of Templates: time 0.004716/0.1421, allocations: 1.794 MB / 368.6 MB, free: 3.227 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches