Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009932/0.0009932, allocations: 145.5 kB / 25.59 MB, free: 8.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.008/1.008, allocations: 173.4 MB / 202.2 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] 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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5201,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5201,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.835e-05, allocations: 2.312 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002787/0.002815, allocations: 1.377 MB / 270.6 MB, free: 8.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007592/0.003574, allocations: 354.7 kB / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.003612, allocations: 0 / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.956e-05/0.003642, allocations: 0 / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.263e-05/0.003714, allocations: 3.938 kB / 270.9 MB, free: 8.066 MB / 250.7 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.0005523/0.004267, allocations: 100.8 kB / 271 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.179e-05/0.004338, allocations: 15.94 kB / 271 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.047e-05/0.004379, allocations: 4 kB / 271 MB, free: 7.949 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.474e-05/0.004424, allocations: 15.97 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.311e-05/0.004447, allocations: 0.625 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.004461, allocations: 0.5938 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.004732, allocations: 119.7 kB / 271.2 MB, free: 7.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.893e-05/0.004751, allocations: 9.188 kB / 271.2 MB, free: 7.809 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.93e-05/0.00477, allocations: 4 kB / 271.2 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.004968, allocations: 99.67 kB / 271.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.00497, allocations: 1.125 kB / 271.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.004971, allocations: 0 / 271.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.004975, allocations: 3.938 kB / 271.3 MB, free: 7.703 MB / 250.7 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.0003713/0.005347, allocations: 366.1 kB / 271.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.005386, allocations: 12.03 kB / 271.7 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.005419, allocations: 0.9375 kB / 271.7 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.335e-05/0.005512, allocations: 116.5 kB / 271.8 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.005529, allocations: 0.9688 kB / 271.8 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.287e-06/0.005538, allocations: 4.375 kB / 271.8 MB, free: 7.156 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.864e-05/0.005617, allocations: 31.08 kB / 271.8 MB, free: 7.121 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.005625, allocations: 3.938 kB / 271.8 MB, free: 7.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-06/0.005632, allocations: 4.75 kB / 271.8 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.005637, allocations: 0 / 271.8 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.163e-05/0.005649, allocations: 4.516 kB / 271.8 MB, free: 7.109 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002526/0.005901, allocations: 229.3 kB / 272 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.374e-05/0.005955, allocations: 31 kB / 272.1 MB, free: 6.816 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.747e-05/0.005973, allocations: 13.06 kB / 272.1 MB, free: 6.801 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-06/0.005979, allocations: 0 / 272.1 MB, free: 6.801 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.271e-05/0.006072, allocations: 70.97 kB / 272.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.006073, allocations: 0 / 272.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001537/0.006227, allocations: 57.52 kB / 272.2 MB, free: 6.656 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.006265, allocations: 51.41 kB / 272.3 MB, free: 6.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.431e-05/0.006359, allocations: 169.9 kB / 272.4 MB, free: 6.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.006371, allocations: 25.7 kB / 272.4 MB, free: 6.379 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.037e-05/0.006421, allocations: 131.7 kB / 272.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.00644, allocations: 7.953 kB / 272.6 MB, free: 6.238 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.006479, allocations: 27.86 kB / 272.6 MB, free: 6.203 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.00664, allocations: 0.4884 MB / 273.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-05/0.006667, allocations: 16.7 kB / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.873e-05/0.006695, allocations: 23.36 kB / 273.1 MB, free: 5.652 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.201e-05/0.006737, allocations: 27.38 kB / 273.2 MB, free: 5.617 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.00674, allocations: 3.938 kB / 273.2 MB, free: 5.613 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.161e-05/0.006831, allocations: 53.62 kB / 273.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.006849, allocations: 9.875 kB / 273.2 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.006853, allocations: 0 / 273.2 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.006863, allocations: 0 / 273.2 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.051e-05/0.006913, allocations: 12.3 kB / 273.2 MB, free: 5.535 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.006918, allocations: 8.031 kB / 273.3 MB, free: 5.527 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.968e-05/0.006938, allocations: 3.953 kB / 273.3 MB, free: 5.523 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.006945, allocations: 4 kB / 273.3 MB, free: 5.52 MB / 250.7 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.seed,globalSeed.id_impure,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.291e-05/0.007028, allocations: 160.5 kB / 273.4 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.00704, allocations: 3.938 kB / 273.4 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.007065, allocations: 12 kB / 273.4 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.007068, allocations: 0 / 273.4 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.007069, allocations: 0 / 273.4 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.007073, allocations: 0 / 273.4 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.007286, allocations: 266.1 kB / 273.7 MB, free: 5.035 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.007288, allocations: 7.938 kB / 273.7 MB, free: 5.027 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.608e-05/0.007304, allocations: 7.938 kB / 273.7 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.007306, allocations: 0 / 273.7 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-06/0.007311, allocations: 3.938 kB / 273.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.007313, allocations: 0 / 273.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.007314, allocations: 0 / 273.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.00744, allocations: 195.9 kB / 273.9 MB, free: 4.805 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-06/0.007448, allocations: 3.938 kB / 273.9 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.007461, allocations: 8 kB / 273.9 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.542e-05/0.007506, allocations: 336 / 273.9 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.879e-05/0.007525, allocations: 0 / 273.9 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.007536, allocations: 4 kB / 273.9 MB, free: 4.789 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.007585, allocations: 131.2 kB / 274 MB, free: 4.66 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007585, allocations: 0 / 274 MB, free: 4.66 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003362/0.007921, allocations: 27.94 kB / 274.1 MB, free: 4.633 MB / 250.7 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.0004532/0.008374, allocations: 198.1 kB / 274.3 MB, free: 4.465 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.967e-05/0.008464, allocations: 23.67 kB / 274.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.008466, allocations: 0 / 274.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.28e-05/0.008488, allocations: 15.67 kB / 274.3 MB, free: 4.418 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.008736, allocations: 8 kB / 274.3 MB, free: 4.41 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002438/0.00898, allocations: 122.2 kB / 274.4 MB, free: 4.262 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.933e-05/0.009019, allocations: 51.36 kB / 274.5 MB, free: 4.191 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.101e-05/0.00905, allocations: 7.984 kB / 274.5 MB, free: 4.184 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.009091, allocations: 74.27 kB / 274.6 MB, free: 4.109 MB / 250.7 MB Notification: Performance of SimCode: time 7.32e-07/0.009092, allocations: 0 / 274.6 MB, free: 4.109 MB / 250.7 MB Notification: Performance of Templates: time 0.003534/0.01263, allocations: 1.133 MB / 275.7 MB, free: 2.988 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7141307019628584]