Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008849/0.000885, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003769, allocations: 4.281 kB / 307.7 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.131, allocations: 51.53 MB / 359.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002024/0.1331, allocations: 1.077 MB / 360.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000839/0.1339, allocations: 360.7 kB / 360.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.33e-05/0.134, allocations: 0 / 360.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.199e-05/0.134, allocations: 0 / 360.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.32e-05/0.1341, allocations: 3.938 kB / 360.7 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.0004613/0.1346, allocations: 63.86 kB / 360.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.982e-05/0.1346, allocations: 19.98 kB / 360.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.049e-05/0.1347, allocations: 0 / 360.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.096e-05/0.1347, allocations: 15.88 kB / 360.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.761e-05/0.1348, allocations: 11.92 kB / 360.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.1348, allocations: 0 / 360.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.135, allocations: 79.91 kB / 360.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.135, allocations: 4 kB / 360.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.349e-05/0.135, allocations: 37.62 kB / 360.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.1352, allocations: 87.81 kB / 361 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1352, allocations: 0 / 361 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1352, allocations: 4 kB / 361 MB, free: 11.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1353, allocations: 0 / 361 MB, free: 11.49 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000386/0.1356, allocations: 343.5 kB / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1357, allocations: 11.97 kB / 361.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.1357, allocations: 0.9375 kB / 361.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.1359, allocations: 176.5 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.1359, allocations: 384 / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.1359, allocations: 4.312 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.482e-05/0.136, allocations: 34.27 kB / 361.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.136, allocations: 4.188 kB / 361.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.136, allocations: 7.938 kB / 361.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1361, allocations: 0 / 361.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.155e-05/0.1361, allocations: 3.984 kB / 361.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.1365, allocations: 244.9 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.234e-05/0.1365, allocations: 22.58 kB / 361.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.841e-05/0.1366, allocations: 20.86 kB / 361.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.1366, allocations: 0 / 361.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/0.1367, allocations: 47.41 kB / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.1367, allocations: 0 / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001771/0.1369, allocations: 61.61 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.1369, allocations: 51.41 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.611e-05/0.137, allocations: 105.8 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.137, allocations: 29.7 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.709e-05/0.1371, allocations: 88.14 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.361e-05/0.1371, allocations: 3.906 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.1371, allocations: 17.72 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1373, allocations: 314.8 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.296e-05/0.1373, allocations: 8 kB / 362.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.814e-05/0.1373, allocations: 17.72 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.652e-05/0.1374, allocations: 41.64 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1374, allocations: 0 / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.242e-05/0.1375, allocations: 61.66 kB / 362.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1375, allocations: 4 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1375, allocations: 48 / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1375, allocations: 8.359 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.702e-05/0.1376, allocations: 4 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1376, allocations: 0 / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.416e-05/0.1376, allocations: 15.94 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1376, allocations: 4.031 kB / 362.7 MB, free: 9.531 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 8.518e-05/0.1377, allocations: 121.7 kB / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-06/0.1378, allocations: 0 / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.1378, allocations: 11.84 kB / 362.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1378, allocations: 4 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1378, allocations: 0 / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1378, allocations: 0 / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.138, allocations: 282.5 kB / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1381, allocations: 4 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.311e-05/0.1381, allocations: 4 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1381, allocations: 3.984 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1381, allocations: 0 / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1381, allocations: 0 / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1381, allocations: 0 / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.1382, allocations: 151.4 kB / 363.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.1383, allocations: 77.11 kB / 363.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1383, allocations: 4 kB / 363.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.192e-05/0.1383, allocations: 4 kB / 363.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.321e-05/0.1384, allocations: 7.922 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.1384, allocations: 4 kB / 363.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.017e-05/0.1385, allocations: 83.28 kB / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1385, allocations: 0 / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1387, allocations: 19.98 kB / 363.5 MB, free: 8.656 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000403/0.1391, allocations: 187.8 kB / 363.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.58e-05/0.1392, allocations: 23.94 kB / 363.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1392, allocations: 0 / 363.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-05/0.1393, allocations: 11.92 kB / 363.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.1395, allocations: 8 kB / 363.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.1397, allocations: 108.8 kB / 363.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.14, allocations: 0.677 MB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.906e-05/0.14, allocations: 15.91 kB / 364.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.14, allocations: 11.44 kB / 364.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1401, allocations: 0 / 364.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of Templates: time 0.003175/0.1432, allocations: 0.9219 MB / 365.5 MB, free: 6.656 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches