Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001216/0.001216, allocations: 91.67 kB / 20.68 MB, free: 3.871 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.001322/0.001322, allocations: 166 kB / 23.95 MB, free: 0.5977 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.9125/0.9125, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.627e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001501/0.001517, allocations: 1.249 MB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007037/0.002221, allocations: 453.2 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.611e-05/0.002257, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.002292, allocations: 7.875 kB / 326.3 MB, free: 14.23 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.typeBindings: time 0.0004793/0.002772, allocations: 75.7 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001095/0.002881, allocations: 63.7 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.848e-05/0.00298, allocations: 51.83 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.778e-05/0.003027, allocations: 11.98 kB / 326.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.689e-05/0.003084, allocations: 19.98 kB / 326.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.003124, allocations: 19.97 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.003137, allocations: 0 / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.003356, allocations: 159.5 kB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.003401, allocations: 35.92 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.432e-05/0.003436, allocations: 19.94 kB / 326.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.003637, allocations: 195.3 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.003639, allocations: 4 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.00364, allocations: 0 / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.003646, allocations: 11.92 kB / 326.9 MB, free: 13.57 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004521/0.004098, allocations: 484 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.004139, allocations: 8.031 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.00422, allocations: 66.61 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.939e-05/0.004319, allocations: 20.84 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.004424, allocations: 117.6 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.004435, allocations: 4.375 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.004451, allocations: 8.375 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.004765, allocations: 398.7 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.004774, allocations: 4.172 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.004785, allocations: 8.375 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.004793, allocations: 4.125 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.004953, allocations: 263.6 kB / 328.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002786/0.005231, allocations: 344.8 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.005445, allocations: 308.8 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.005615, allocations: 281.4 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.005624, allocations: 0 / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003818/0.006006, allocations: 0.5884 MB / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.152e-06/0.006007, allocations: 0 / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007635/0.006771, allocations: 1.002 MB / 330.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.006848, allocations: 160.5 kB / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.716e-05/0.006915, allocations: 105.8 kB / 331 MB, free: 9.105 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.006927, allocations: 29.64 kB / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.928e-05/0.006957, allocations: 81.14 kB / 331.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.007017, allocations: 111.1 kB / 331.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.007059, allocations: 37.7 kB / 331.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.007153, allocations: 330.8 kB / 331.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.007282, allocations: 203.8 kB / 331.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.007423, allocations: 236 kB / 332 MB, free: 8.047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.00769, allocations: 484.8 kB / 332.5 MB, free: 7.543 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.007692, allocations: 0 / 332.5 MB, free: 7.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003278/0.00802, allocations: 0.5037 MB / 333 MB, free: 7.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.806e-05/0.008088, allocations: 111.3 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.008096, allocations: 0 / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.008107, allocations: 0 / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.38e-05/0.008181, allocations: 7.938 kB / 333.1 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.008189, allocations: 7.984 kB / 333.1 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.51e-05/0.008224, allocations: 19.84 kB / 333.2 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.008238, allocations: 8 kB / 333.2 MB, free: 6.844 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: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001659/0.008404, allocations: 283.8 kB / 333.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.008433, allocations: 27.84 kB / 333.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.567e-05/0.008449, allocations: 5.656 kB / 333.5 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.008451, allocations: 4 kB / 333.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.008455, allocations: 0 / 333.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.008458, allocations: 4 kB / 333.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006898/0.009148, allocations: 1.043 MB / 334.5 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.00915, allocations: 8 kB / 334.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.495e-05/0.009165, allocations: 4 kB / 334.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.009167, allocations: 0 / 334.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.009186, allocations: 19.98 kB / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.009188, allocations: 0 / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.009188, allocations: 0 / 334.6 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006432/0.009832, allocations: 0.9684 MB / 335.5 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.716e-05/0.009849, allocations: 27.83 kB / 335.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/0.009918, allocations: 63.95 kB / 335.6 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.155e-05/0.009969, allocations: 15.98 kB / 335.6 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.01001, allocations: 8 kB / 335.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.01002, allocations: 19.98 kB / 335.7 MB, free: 4.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.789e-05/0.01005, allocations: 79.28 kB / 335.7 MB, free: 4.137 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01005, allocations: 0 / 335.7 MB, free: 4.137 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002582/0.01031, allocations: 95.92 kB / 335.8 MB, free: 4.043 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 43 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.001462/0.01177, allocations: 2.129 MB / 338 MB, free: 1.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006249/0.0124, allocations: 0.8699 MB / 338.8 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.0124, allocations: 4.062 kB / 338.8 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.01273, allocations: 0.537 MB / 339.4 MB, free: 400 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.01291, allocations: 22.66 kB / 339.4 MB, free: 380 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.0154, allocations: 3.569 MB / 343 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.265e-05/0.01548, allocations: 122.7 kB / 343.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.048e-05/0.01549, allocations: 0 / 343.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.01553, allocations: 44.55 kB / 343.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01553, allocations: 0 / 343.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.03371, allocations: 5.573 MB / 348.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.92/6.954, allocations: 0 / 348.7 MB, free: 6.977 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,r1024,r128,r64 Variables in the result:time,r1024,r128,r64 [Calling sys.exit(0), Time elapsed: 8.771698472090065]