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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008039/0.0008039, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008493/0.0008493, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8492/0.8492, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 4 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.162e-05/1.409e-05, allocations: 2.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001819/0.001833, allocations: 1.363 MB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005071/0.00234, allocations: 350.8 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.75e-05/0.002368, allocations: 0 / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.544e-05/0.002393, allocations: 3.938 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.118e-05/0.002444, allocations: 4 kB / 326.2 MB, free: 14.16 MB / 298.7 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.0004386/0.002883, allocations: 91.58 kB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.507e-05/0.002948, allocations: 19.92 kB / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.299e-05/0.002981, allocations: 0 / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.49e-05/0.003016, allocations: 11.92 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.145e-05/0.003037, allocations: 12 kB / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.003048, allocations: 0 / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.003219, allocations: 119.7 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.003233, allocations: 3.938 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.003258, allocations: 7.938 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.00341, allocations: 91.8 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.003412, allocations: 0 / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.003413, allocations: 0 / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.003417, allocations: 4 kB / 326.6 MB, free: 13.81 MB / 298.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.0003127/0.00373, allocations: 278.1 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.003764, allocations: 11.98 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.003814, allocations: 42.75 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.087e-05/0.003835, allocations: 0.9375 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.579e-05/0.003901, allocations: 109.8 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.003913, allocations: 384 / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.003919, allocations: 384 / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.708e-05/0.003997, allocations: 42.25 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.004003, allocations: 192 / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.00401, allocations: 4.312 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.004017, allocations: 4.125 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.844e-05/0.004035, allocations: 7.984 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003009/0.004336, allocations: 224 kB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.493e-05/0.004381, allocations: 22.58 kB / 327.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.594e-05/0.004397, allocations: 8.922 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.004406, allocations: 3.938 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.018e-05/0.004496, allocations: 59.33 kB / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.004497, allocations: 0 / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.000145/0.004642, allocations: 65.58 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.004672, allocations: 51.41 kB / 327.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.326e-05/0.004726, allocations: 109.8 kB / 327.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.004734, allocations: 25.7 kB / 327.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.004767, allocations: 96.06 kB / 327.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.147e-06/0.004776, allocations: 7.953 kB / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.004801, allocations: 21.7 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.746e-05/0.004869, allocations: 310.8 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.604e-05/0.004885, allocations: 11.94 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.153e-05/0.004906, allocations: 21.7 kB / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.004941, allocations: 25.72 kB / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.004943, allocations: 0 / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.875e-05/0.005001, allocations: 65.8 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.005013, allocations: 8.031 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.005018, allocations: 3.984 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.005028, allocations: 0 / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.59e-05/0.005074, allocations: 11.98 kB / 328.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.005078, allocations: 0 / 328.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.231e-05/0.005091, allocations: 3.953 kB / 328.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.005097, allocations: 4 kB / 328.2 MB, free: 11.97 MB / 298.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.156e-05/0.005148, allocations: 109.8 kB / 328.3 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-06/0.005154, allocations: 7.938 kB / 328.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.915e-05/0.005173, allocations: 8 kB / 328.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.005175, allocations: 4 kB / 328.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.005178, allocations: 0 / 328.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.00518, allocations: 0 / 328.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.005329, allocations: 253.7 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.005331, allocations: 3.984 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.282e-06/0.005337, allocations: 4 kB / 328.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.005339, allocations: 0 / 328.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.005344, allocations: 0 / 328.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.005345, allocations: 0 / 328.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.005345, allocations: 0 / 328.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.104e-05/0.005416, allocations: 151.4 kB / 328.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-06/0.005423, allocations: 11.95 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.005436, allocations: 384 / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.336e-05/0.00546, allocations: 3.984 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.005477, allocations: 4 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.005487, allocations: 7.938 kB / 328.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.512e-05/0.005512, allocations: 83.28 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005512, allocations: 3.938 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000187/0.005699, allocations: 27.92 kB / 328.9 MB, free: 11.22 MB / 298.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.000452/0.006151, allocations: 0.7738 MB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.836e-05/0.00622, allocations: 19.98 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.006221, allocations: 0 / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.901e-05/0.00624, allocations: 15.94 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.006375, allocations: 3.984 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007403/0.007115, allocations: 1.235 MB / 330.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.177e-05/0.007157, allocations: 63.34 kB / 331 MB, free: 9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.431e-05/0.007182, allocations: 4 kB / 331 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.007208, allocations: 16.48 kB / 331 MB, free: 8.98 MB / 298.7 MB Notification: Performance of SimCode: time 6.52e-07/0.007209, allocations: 0 / 331 MB, free: 8.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.02229, allocations: 2.625 MB / 333.6 MB, free: 6.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.673/6.696, allocations: 3.938 kB / 333.6 MB, free: 6.441 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.381054325029254]