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.0008339/0.0008339, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008366/0.0008366, allocations: 170 kB / 23.95 MB, free: 0.6094 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 0.8672/0.8672, allocations: 177.1 MB / 204.3 MB, free: 5.699 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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.878e-05/3.084e-05, allocations: 8.75 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001803/0.001834, allocations: 1.363 MB / 325.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000545/0.002379, allocations: 354.8 kB / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.002408, allocations: 3.938 kB / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.551e-05/0.002434, allocations: 0 / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.05e-05/0.002485, allocations: 7.938 kB / 326.3 MB, free: 14.18 MB / 298.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.0004551/0.00294, allocations: 91.58 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.069e-05/0.003, allocations: 15.92 kB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.003035, allocations: 4 kB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.678e-05/0.003072, allocations: 11.98 kB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.994e-05/0.003091, allocations: 7.922 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.003104, allocations: 7.938 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.003279, allocations: 111.8 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/0.003296, allocations: 12 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.069e-05/0.003317, allocations: 0 / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.003476, allocations: 99.73 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003478, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.003478, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.003482, allocations: 0 / 326.6 MB, free: 13.82 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.000332/0.003814, allocations: 281.1 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.00385, allocations: 8.031 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.003901, allocations: 30.75 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.339e-05/0.003925, allocations: 8.875 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.647e-05/0.003991, allocations: 113.7 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.004002, allocations: 4.375 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-06/0.00401, allocations: 4.375 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.615e-05/0.004086, allocations: 38.19 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.004093, allocations: 192 / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.0041, allocations: 4.375 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.004106, allocations: 4.125 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.731e-05/0.004123, allocations: 8 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002944/0.004417, allocations: 223.9 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.4e-05/0.004462, allocations: 22.58 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.004478, allocations: 16.92 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.004486, allocations: 0 / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.891e-05/0.004585, allocations: 55.33 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.004586, allocations: 0 / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001381/0.004724, allocations: 65.52 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.004754, allocations: 55.41 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.18e-05/0.004805, allocations: 105.8 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.784e-06/0.004813, allocations: 25.7 kB / 327.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.056e-05/0.004844, allocations: 84.14 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-06/0.004851, allocations: 3.953 kB / 327.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.004878, allocations: 29.7 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.651e-05/0.004944, allocations: 310.8 kB / 328.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.57e-05/0.00496, allocations: 8 kB / 328.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.185e-05/0.004982, allocations: 21.7 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.469e-05/0.005017, allocations: 29.66 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005018, allocations: 0 / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.954e-05/0.005078, allocations: 61.75 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.00509, allocations: 8 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.005094, allocations: 48 / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.005106, allocations: 3.984 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.456e-05/0.00515, allocations: 8.031 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.005156, allocations: 11.97 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.266e-05/0.005168, allocations: 8.266 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.005173, allocations: 0 / 328.3 MB, free: 11.99 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.219e-05/0.005225, allocations: 113.8 kB / 328.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-06/0.005231, allocations: 7.938 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.655e-05/0.005247, allocations: 4 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.00525, allocations: 4 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.005253, allocations: 0 / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.005256, allocations: 0 / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.005407, allocations: 265.6 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.005408, allocations: 0 / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.005415, allocations: 7.984 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-07/0.005416, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.005422, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.005424, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.005424, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.7e-05/0.005491, allocations: 143.5 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.952e-06/0.005497, allocations: 7.953 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.295e-06/0.005506, allocations: 0 / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.367e-05/0.005529, allocations: 0 / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.005548, allocations: 15.92 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.00556, allocations: 7.938 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.402e-05/0.005584, allocations: 79.28 kB / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005584, allocations: 0 / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001778/0.005762, allocations: 31.92 kB / 328.9 MB, free: 11.23 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.0004433/0.006205, allocations: 0.771 MB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.77e-05/0.006273, allocations: 27.86 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.006274, allocations: 0 / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.00629, allocations: 8 kB / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.006439, allocations: 0 / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006794/0.007118, allocations: 1.236 MB / 331 MB, free: 9.113 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.764e-05/0.007156, allocations: 67.41 kB / 331.1 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.289e-05/0.007179, allocations: 4 kB / 331.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.459e-05/0.007203, allocations: 12.5 kB / 331.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.007204, allocations: 0 / 331.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.02248, allocations: 2.62 MB / 333.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.664/6.687, allocations: 9.781 kB / 333.7 MB, free: 6.484 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --stepSize=0.000384541 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.279397308826447]