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.001314/0.001314, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 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.001324/0.001324, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 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 1.466/1.466, allocations: 230.4 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002164/0.002164, allocations: 59.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1161, allocations: 53.37 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002842/0.1189, allocations: 1.351 MB / 427.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007889/0.1197, allocations: 358.8 kB / 428.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.1197, allocations: 0 / 428.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.134e-05/0.1198, allocations: 3.938 kB / 428.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.725e-05/0.1198, allocations: 4 kB / 428.1 MB, free: 2.895 MB / 350.1 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.0004866/0.1203, allocations: 79.73 kB / 428.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.581e-05/0.1204, allocations: 31.91 kB / 428.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.1204, allocations: 0 / 428.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.641e-05/0.1204, allocations: 7.938 kB / 428.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.603e-05/0.1205, allocations: 11.98 kB / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.1205, allocations: 0 / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.1207, allocations: 91.83 kB / 428.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.1207, allocations: 11.92 kB / 428.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.1207, allocations: 7.938 kB / 428.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.1209, allocations: 79.77 kB / 428.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1209, allocations: 0 / 428.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1209, allocations: 0 / 428.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1209, allocations: 4 kB / 428.4 MB, free: 2.574 MB / 350.1 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.0004548/0.1214, allocations: 351.3 kB / 428.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.1214, allocations: 12.03 kB / 428.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.747e-05/0.1215, allocations: 30.75 kB / 428.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.1215, allocations: 0.9375 kB / 428.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.1216, allocations: 172.3 kB / 428.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1216, allocations: 384 / 428.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1217, allocations: 4.375 kB / 428.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.1218, allocations: 50.17 kB / 429 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1218, allocations: 3.938 kB / 429 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.1218, allocations: 0 / 429 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1218, allocations: 0 / 429 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.722e-05/0.1218, allocations: 7.984 kB / 429 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004397/0.1223, allocations: 256.9 kB / 429.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.367e-05/0.1223, allocations: 30.45 kB / 429.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.01e-05/0.1223, allocations: 16.92 kB / 429.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.1224, allocations: 0 / 429.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.1225, allocations: 47.41 kB / 429.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1225, allocations: 0 / 429.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001869/0.1227, allocations: 61.61 kB / 429.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.1227, allocations: 55.34 kB / 429.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.1228, allocations: 109.8 kB / 429.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.1228, allocations: 29.7 kB / 429.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.1229, allocations: 88.14 kB / 429.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.1229, allocations: 7.891 kB / 429.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.1229, allocations: 17.72 kB / 429.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1231, allocations: 314.8 kB / 430 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.241e-05/0.1231, allocations: 8 kB / 430 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.305e-05/0.1232, allocations: 21.72 kB / 430 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.96e-05/0.1232, allocations: 33.64 kB / 430.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1232, allocations: 0 / 430.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.268e-05/0.1233, allocations: 61.62 kB / 430.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.1233, allocations: 4 kB / 430.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1233, allocations: 0 / 430.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1233, allocations: 0 / 430.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.813e-05/0.1234, allocations: 8 kB / 430.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1234, allocations: 3.938 kB / 430.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.56e-05/0.1234, allocations: 0 / 430.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.1234, allocations: 8.031 kB / 430.2 MB, free: 0.5469 MB / 350.1 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 8.279e-05/0.1235, allocations: 117.8 kB / 430.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.1235, allocations: 7.953 kB / 430.3 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.556e-05/0.1235, allocations: 7.844 kB / 430.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1236, allocations: 0 / 430.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1236, allocations: 0 / 430.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1236, allocations: 0 / 430.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.1238, allocations: 286.8 kB / 430.6 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1238, allocations: 0 / 430.6 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.502e-05/0.1238, allocations: 11.94 kB / 430.6 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1238, allocations: 48 / 430.6 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.1238, allocations: 8.359 kB / 430.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1238, allocations: 0 / 430.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1238, allocations: 0 / 430.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.124, allocations: 147.5 kB / 430.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.124, allocations: 81.06 kB / 430.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.124, allocations: 3.984 kB / 430.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.337e-05/0.1241, allocations: 8 kB / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.1241, allocations: 4 kB / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1241, allocations: 0 / 430.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.853e-05/0.1242, allocations: 87.16 kB / 430.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1242, allocations: 4 kB / 430.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.1244, allocations: 27.92 kB / 431 MB, free: 15.65 MB / 366.1 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.0008149/0.1252, allocations: 0.7544 MB / 431.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.852e-05/0.1253, allocations: 19.98 kB / 431.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1253, allocations: 4.062 kB / 431.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.501e-05/0.1254, allocations: 11.94 kB / 431.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.1256, allocations: 6.016 kB / 431.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.1267, allocations: 1.231 MB / 433 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.127, allocations: 0.6807 MB / 433.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.974e-05/0.1271, allocations: 4 kB / 433.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.1271, allocations: 11.44 kB / 433.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1271, allocations: 96 / 433.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.1509, allocations: 1.948 MB / 435.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.107/8.258, allocations: 23.45 kB / 435.6 MB, free: 10.93 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/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: 11.088849745923653]