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.0009189/0.0009189, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008656/0.0008656, allocations: 143 kB / 24.89 MB, free: 8.781 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 0.9603/0.9603, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.443e-06/1.443e-06, allocations: 3.938 kB / 268.5 MB, free: 5.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.314e-05/1.458e-05, allocations: 4.141 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001609/0.001624, allocations: 1.41 MB / 269.9 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000503/0.002127, allocations: 366.7 kB / 270.3 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.513e-05/0.002152, allocations: 4 kB / 270.3 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.159e-05/0.002174, allocations: 3.938 kB / 270.3 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.269e-05/0.002226, allocations: 3.938 kB / 270.3 MB, free: 4.176 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.0003463/0.002573, allocations: 87.58 kB / 270.4 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.014e-05/0.002623, allocations: 15.92 kB / 270.4 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.581e-05/0.002648, allocations: 4 kB / 270.4 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.092e-05/0.002679, allocations: 8 kB / 270.4 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.801e-05/0.002697, allocations: 15.97 kB / 270.4 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.819e-06/0.002707, allocations: 0 / 270.4 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001797/0.002887, allocations: 123.7 kB / 270.6 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.219e-05/0.002899, allocations: 7.922 kB / 270.6 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.404e-05/0.002913, allocations: 4 kB / 270.6 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.003043, allocations: 95.69 kB / 270.7 MB, free: 3.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-06/0.003044, allocations: 0 / 270.7 MB, free: 3.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003044, allocations: 0 / 270.7 MB, free: 3.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.035e-06/0.003047, allocations: 0 / 270.7 MB, free: 3.82 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.0002131/0.003261, allocations: 244.8 kB / 270.9 MB, free: 3.559 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.683e-05/0.003287, allocations: 8.922 kB / 270.9 MB, free: 3.551 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.06e-05/0.003308, allocations: 12.94 kB / 270.9 MB, free: 3.539 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.16e-05/0.00337, allocations: 113.7 kB / 271 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.003382, allocations: 384 / 271 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-06/0.003387, allocations: 384 / 271 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.263e-05/0.00343, allocations: 30.27 kB / 271.1 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.68e-06/0.003435, allocations: 3.938 kB / 271.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.709e-06/0.00344, allocations: 0 / 271.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.003444, allocations: 3.984 kB / 271.1 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.235e-06/0.003452, allocations: 4 kB / 271.1 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.003602, allocations: 152.3 kB / 271.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.366e-05/0.003636, allocations: 26.56 kB / 271.2 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.072e-05/0.003646, allocations: 12.86 kB / 271.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-06/0.003651, allocations: 0 / 271.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/0.003704, allocations: 51.34 kB / 271.3 MB, free: 3.078 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 6.11e-07/0.003705, allocations: 0 / 271.3 MB, free: 3.078 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 7.328e-05/0.003778, allocations: 41.62 kB / 271.3 MB, free: 3.031 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.003802, allocations: 51.41 kB / 271.4 MB, free: 2.969 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.04e-05/0.003852, allocations: 114.7 kB / 271.5 MB, free: 2.844 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.253e-06/0.00386, allocations: 25.7 kB / 271.5 MB, free: 2.812 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.217e-05/0.003882, allocations: 88.14 kB / 271.6 MB, free: 2.723 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.003896, allocations: 11.92 kB / 271.6 MB, free: 2.711 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.003918, allocations: 17.72 kB / 271.7 MB, free: 2.688 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.00398, allocations: 318.8 kB / 272 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.28e-05/0.003992, allocations: 16.69 kB / 272 MB, free: 2.348 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.422e-05/0.004007, allocations: 17.72 kB / 272 MB, free: 2.324 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.392e-05/0.004031, allocations: 25.64 kB / 272 MB, free: 2.293 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.004032, allocations: 0 / 272 MB, free: 2.293 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.197e-05/0.004074, allocations: 45.81 kB / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.004085, allocations: 15.97 kB / 272.1 MB, free: 2.227 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.004088, allocations: 0 / 272.1 MB, free: 2.227 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.004097, allocations: 4.031 kB / 272.1 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-05/0.004132, allocations: 4 kB / 272.1 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.575e-06/0.004134, allocations: 4 kB / 272.1 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/0.004147, allocations: 7.953 kB / 272.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.004153, allocations: 3.984 kB / 272.1 MB, free: 2.203 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 4.892e-05/0.004202, allocations: 109.8 kB / 272.2 MB, free: 2.086 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-06/0.004207, allocations: 3.938 kB / 272.2 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.658e-05/0.004224, allocations: 8 kB / 272.2 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.004225, allocations: 4 kB / 272.2 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.004226, allocations: 0 / 272.2 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.004229, allocations: 0 / 272.2 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.004344, allocations: 198.7 kB / 272.4 MB, free: 1.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.004345, allocations: 0 / 272.4 MB, free: 1.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.291e-06/0.004351, allocations: 4 kB / 272.4 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.004353, allocations: 3.938 kB / 272.4 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-06/0.004356, allocations: 0 / 272.4 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.004357, allocations: 384 / 272.4 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.004358, allocations: 0 / 272.4 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.087e-05/0.004409, allocations: 135.5 kB / 272.6 MB, free: 1.691 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-06/0.004415, allocations: 15.92 kB / 272.6 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.564e-06/0.004423, allocations: 4 kB / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.295e-05/0.004446, allocations: 0 / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.004459, allocations: 0 / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.004466, allocations: 4 kB / 272.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.719e-06/0.004476, allocations: 8.859 kB / 272.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004476, allocations: 0 / 272.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001425/0.004619, allocations: 27.92 kB / 272.6 MB, free: 1.629 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.0003024/0.004921, allocations: 200.7 kB / 272.8 MB, free: 1.473 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.875e-05/0.00497, allocations: 20.83 kB / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.004972, allocations: 7.938 kB / 272.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.421e-05/0.004986, allocations: 8.859 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.73e-05/0.005073, allocations: 7.922 kB / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001993/0.005273, allocations: 116.6 kB / 273 MB, free: 1.281 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.043e-05/0.005303, allocations: 55.36 kB / 273 MB, free: 1.207 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.214e-05/0.005325, allocations: 7.984 kB / 273 MB, free: 1.199 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.005354, allocations: 51.38 kB / 273.1 MB, free: 1.148 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.005354, allocations: 0 / 273.1 MB, free: 1.148 MB / 250.7 MB Notification: Performance of Templates: time 0.002139/0.007494, allocations: 1.11 MB / 274.2 MB, free: 40 kB / 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 -s gbode -gbm=radauIIA3 -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.394790343940258]