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.001012/0.001012, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0008647/0.0008647, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.9507/0.9507, allocations: 173.4 MB / 200.4 MB, free: 9.43 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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.284e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001888/0.001911, allocations: 1.332 MB / 319.8 MB, free: 5.012 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005564/0.002468, allocations: 350.7 kB / 320.1 MB, free: 4.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.002507, allocations: 0 / 320.1 MB, free: 4.668 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.938e-05/0.002536, allocations: 3.938 kB / 320.1 MB, free: 4.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.053e-05/0.002597, allocations: 3.938 kB / 320.1 MB, free: 4.66 MB / 282.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.0005144/0.003111, allocations: 91.58 kB / 320.2 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.79e-05/0.003189, allocations: 19.92 kB / 320.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.003228, allocations: 0 / 320.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.978e-05/0.003267, allocations: 11.94 kB / 320.2 MB, free: 4.539 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.471e-05/0.003292, allocations: 11.98 kB / 320.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.003307, allocations: 0 / 320.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.003501, allocations: 119.7 kB / 320.4 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.708e-05/0.003518, allocations: 7.984 kB / 320.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.671e-05/0.003545, allocations: 7.938 kB / 320.4 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.003716, allocations: 95.8 kB / 320.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003718, allocations: 0 / 320.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.003719, allocations: 0 / 320.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.003723, allocations: 0 / 320.5 MB, free: 4.301 MB / 282.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.0005943/0.004318, allocations: 281.4 kB / 320.7 MB, free: 4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.004356, allocations: 16.92 kB / 320.8 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.004416, allocations: 34.73 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.004441, allocations: 0.9375 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.401e-05/0.004515, allocations: 113.7 kB / 320.9 MB, free: 3.805 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.004528, allocations: 4.359 kB / 320.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.816e-06/0.004537, allocations: 4.375 kB / 320.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.537e-05/0.004622, allocations: 42 kB / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.00463, allocations: 0 / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.004638, allocations: 0 / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-06/0.004643, allocations: 0 / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.902e-05/0.004662, allocations: 4 kB / 321 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.004991, allocations: 235.9 kB / 321.2 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.996e-05/0.005051, allocations: 26.52 kB / 321.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.605e-05/0.005067, allocations: 8.922 kB / 321.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.005076, allocations: 4 kB / 321.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001069/0.005183, allocations: 51.41 kB / 321.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.005184, allocations: 0 / 321.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001507/0.005335, allocations: 61.61 kB / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.005365, allocations: 51.41 kB / 321.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.783e-05/0.005423, allocations: 105.8 kB / 321.5 MB, free: 3.117 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.005438, allocations: 29.7 kB / 321.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.964e-05/0.005477, allocations: 92.09 kB / 321.6 MB, free: 2.988 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-06/0.005485, allocations: 3.953 kB / 321.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.005512, allocations: 17.72 kB / 321.6 MB, free: 2.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.299e-05/0.005585, allocations: 322.8 kB / 322 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.625e-05/0.005601, allocations: 11.94 kB / 322 MB, free: 2.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.284e-05/0.005624, allocations: 21.66 kB / 322 MB, free: 2.598 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.642e-05/0.00566, allocations: 33.64 kB / 322 MB, free: 2.559 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.005662, allocations: 0 / 322 MB, free: 2.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.047e-05/0.005723, allocations: 53.69 kB / 322.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.005735, allocations: 8.031 kB / 322.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.00574, allocations: 0 / 322.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.005752, allocations: 4 kB / 322.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.066e-05/0.005803, allocations: 7.938 kB / 322.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.005808, allocations: 0 / 322.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.293e-05/0.005821, allocations: 4 kB / 322.1 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.005827, allocations: 384 / 322.1 MB, free: 2.477 MB / 282.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.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 5.933e-05/0.005886, allocations: 121.8 kB / 322.2 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.005892, allocations: 3.953 kB / 322.2 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.981e-05/0.005912, allocations: 4 kB / 322.2 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.005921, allocations: 8.234 kB / 322.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.005929, allocations: 4 kB / 322.2 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.005934, allocations: 3.984 kB / 322.2 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.006099, allocations: 257.6 kB / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.0061, allocations: 0 / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-06/0.006109, allocations: 0 / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.006111, allocations: 0 / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.006118, allocations: 4 kB / 322.5 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.006121, allocations: 3.984 kB / 322.5 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.006122, allocations: 0 / 322.5 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.006224, allocations: 147.5 kB / 322.6 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-06/0.006232, allocations: 7.953 kB / 322.6 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.006243, allocations: 0 / 322.6 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.786e-05/0.006281, allocations: 4 kB / 322.7 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.006302, allocations: 0 / 322.7 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.006317, allocations: 3.984 kB / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.048e-05/0.006357, allocations: 91.22 kB / 322.7 MB, free: 1.742 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.006357, allocations: 3.938 kB / 322.7 MB, free: 1.738 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003083/0.006666, allocations: 27.88 kB / 322.8 MB, free: 1.711 MB / 282.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.0007114/0.007377, allocations: 0.7777 MB / 323.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.993e-05/0.007467, allocations: 23.92 kB / 323.6 MB, free: 0.918 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.007469, allocations: 0 / 323.6 MB, free: 0.918 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.899e-05/0.007488, allocations: 8 kB / 323.6 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.007638, allocations: 4 kB / 323.6 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009287/0.008566, allocations: 1.231 MB / 324.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.054e-05/0.008617, allocations: 67.28 kB / 324.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.604e-05/0.008653, allocations: 7.984 kB / 324.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.008688, allocations: 16.5 kB / 324.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.008688, allocations: 0 / 324.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.02501, allocations: 2.608 MB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.933/6.958, allocations: 8.062 kB / 327.5 MB, free: 12.97 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000384541 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv","/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_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.841500139795244]