Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009991/0.0009991, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.024/1.024, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.99e-05/2.132e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001995/0.002016, allocations: 1.389 MB / 274.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006164/0.002632, allocations: 350.6 kB / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.481e-05/0.002667, allocations: 0 / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.002695, allocations: 7.922 kB / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.383e-05/0.002759, allocations: 4 kB / 275.1 MB, free: 15.55 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.000461/0.00322, allocations: 95.52 kB / 275.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.202e-05/0.003282, allocations: 23.92 kB / 275.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.268e-05/0.003315, allocations: 0 / 275.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.00335, allocations: 4 kB / 275.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.258e-05/0.003373, allocations: 11.98 kB / 275.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.003385, allocations: 0 / 275.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.003572, allocations: 119.7 kB / 275.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.003586, allocations: 7.922 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.882e-05/0.003605, allocations: 4 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.00376, allocations: 95.69 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.003762, allocations: 3.938 kB / 275.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003762, allocations: 0 / 275.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.003766, allocations: 4 kB / 275.5 MB, free: 15.19 MB / 266.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.0003144/0.004081, allocations: 376.5 kB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.004118, allocations: 8.031 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.004143, allocations: 4.938 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.677e-05/0.00422, allocations: 112.5 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.004231, allocations: 4.375 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.004237, allocations: 384 / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.9e-05/0.004296, allocations: 34.25 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.004302, allocations: 192 / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-06/0.004308, allocations: 384 / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.004312, allocations: 384 / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.191e-05/0.004324, allocations: 15.88 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002545/0.004579, allocations: 224.5 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.605e-05/0.004625, allocations: 39.02 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.00464, allocations: 11.75 kB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-06/0.004645, allocations: 0 / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.688e-05/0.004712, allocations: 68.94 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 6.21e-07/0.004712, allocations: 0 / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001098/0.004822, allocations: 49.62 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.00485, allocations: 59.39 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.68e-05/0.004916, allocations: 161.9 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.004925, allocations: 29.7 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.004963, allocations: 130.9 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.004977, allocations: 3.953 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.005007, allocations: 31.36 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.005127, allocations: 492.1 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.696e-05/0.005144, allocations: 20.69 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.038e-05/0.005165, allocations: 23.31 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.006e-05/0.005195, allocations: 31.34 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005197, allocations: 4 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.541e-05/0.005252, allocations: 57.58 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.005263, allocations: 4 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.005267, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.005278, allocations: 7.938 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.332e-05/0.005311, allocations: 4 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-06/0.005313, allocations: 0 / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.295e-05/0.005326, allocations: 8 kB / 277.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.005331, allocations: 0 / 277.5 MB, free: 12.99 MB / 266.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 5.91e-05/0.00539, allocations: 156.6 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.005396, allocations: 8.016 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.902e-05/0.005415, allocations: 4 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.005417, allocations: 3.938 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.005419, allocations: 4 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.005422, allocations: 0 / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.005559, allocations: 274 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.00556, allocations: 0 / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.4e-06/0.005566, allocations: 3.938 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.005568, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-06/0.005572, allocations: 4 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.005574, allocations: 3.938 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.005574, allocations: 4.375 kB / 277.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.486e-05/0.005649, allocations: 196.2 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-06/0.005654, allocations: 0 / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-06/0.005663, allocations: 8.031 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.375e-05/0.005686, allocations: 7.922 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/0.005703, allocations: 8 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.005711, allocations: 0 / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.005744, allocations: 123.2 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005744, allocations: 0 / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.005921, allocations: 27.92 kB / 278.3 MB, free: 12.11 MB / 266.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.0002943/0.006215, allocations: 190.9 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.143e-05/0.006276, allocations: 27.61 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.006278, allocations: 0 / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.763e-05/0.006295, allocations: 15.84 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.006423, allocations: 3.125 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000184/0.006607, allocations: 122.3 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.054e-05/0.006637, allocations: 59.34 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.091e-05/0.006658, allocations: 4 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.00669, allocations: 70.2 kB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of SimCode: time 3.71e-07/0.006691, allocations: 0 / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of Templates: time 0.0024/0.00909, allocations: 1.14 MB / 279.9 MB, free: 10.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7163105318322778]