Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001803/0.001803, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001456/0.001456, allocations: 203.4 kB / 23.72 MB, free: 4.391 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.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 59.91 kB / 377.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2343, allocations: 53.41 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002274/0.2366, allocations: 1.237 MB / 432.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2376, allocations: 454.4 kB / 432.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.2376, allocations: 3.938 kB / 432.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.049e-05/0.2376, allocations: 0 / 432.8 MB, free: 4.762 MB / 334.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.typeBindings: time 0.0004712/0.2381, allocations: 83.7 kB / 432.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.2382, allocations: 67.75 kB / 433 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.578e-05/0.2383, allocations: 43.91 kB / 433 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.379e-05/0.2384, allocations: 7.984 kB / 433 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.644e-05/0.2384, allocations: 19.92 kB / 433 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.682e-05/0.2385, allocations: 19.91 kB / 433.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.2385, allocations: 4 kB / 433.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.2388, allocations: 151.7 kB / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.2388, allocations: 31.86 kB / 433.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.809e-05/0.2389, allocations: 43.73 kB / 433.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.2391, allocations: 181 kB / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2391, allocations: 0 / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2391, allocations: 0 / 433.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.2391, allocations: 0 / 433.5 MB, free: 4.121 MB / 334.1 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.0005716/0.2397, allocations: 488.7 kB / 433.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2398, allocations: 19.92 kB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.2398, allocations: 58.61 kB / 434 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.2399, allocations: 24.84 kB / 434 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.2401, allocations: 114.4 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2401, allocations: 4.375 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.2401, allocations: 8.375 kB / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.2405, allocations: 402.3 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.2406, allocations: 7.922 kB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2406, allocations: 0 / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2406, allocations: 3.984 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.2408, allocations: 267.6 kB / 434.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.2412, allocations: 352.7 kB / 435.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.2415, allocations: 312.8 kB / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.2418, allocations: 285.4 kB / 435.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.2418, allocations: 0 / 435.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006064/0.2424, allocations: 0.588 MB / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 9.92e-07/0.2424, allocations: 0 / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001167/0.2436, allocations: 0.9976 MB / 437.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.2437, allocations: 160.5 kB / 437.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.009e-05/0.2438, allocations: 105.8 kB / 437.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.2438, allocations: 29.7 kB / 437.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.2438, allocations: 81.14 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.974e-05/0.2439, allocations: 99.22 kB / 437.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.244, allocations: 41.7 kB / 437.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2441, allocations: 326.8 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.2443, allocations: 207.8 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.2445, allocations: 235.7 kB / 438.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004568/0.245, allocations: 492.8 kB / 439.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.245, allocations: 3.938 kB / 439.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005254/0.2455, allocations: 0.4921 MB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.2456, allocations: 111.3 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2456, allocations: 0 / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2456, allocations: 4 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.876e-05/0.2457, allocations: 7.938 kB / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.2457, allocations: 0 / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.66e-05/0.2458, allocations: 27.78 kB / 439.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2458, allocations: 12.03 kB / 439.7 MB, free: 13.36 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: 49 (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],$outputAlias_r1024,r1024,$outputAlias_r128,r128,$outputAlias_r64,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.0002644/0.2461, allocations: 280.3 kB / 440 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.2461, allocations: 31.86 kB / 440 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.143e-05/0.2461, allocations: 9.656 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2461, allocations: 0 / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2461, allocations: 4 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2461, allocations: 7.922 kB / 440.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.2473, allocations: 1.063 MB / 441.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2473, allocations: 0 / 441.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.039e-05/0.2473, allocations: 4 kB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.2473, allocations: 4 kB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.2473, allocations: 15.98 kB / 441.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2473, allocations: 4 kB / 441.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2474, allocations: 0 / 441.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.2485, allocations: 0.9986 MB / 442.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.704e-05/0.2485, allocations: 19.95 kB / 442.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2486, allocations: 71.89 kB / 442.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.2487, allocations: 8 kB / 442.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.2487, allocations: 15.98 kB / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.2488, allocations: 19.98 kB / 442.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.811e-05/0.2488, allocations: 79.22 kB / 442.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2488, allocations: 4 kB / 442.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.2492, allocations: 95.86 kB / 442.5 MB, free: 10.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 49 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,$outputAlias_r64,r128,$outputAlias_r128,r1024,$outputAlias_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: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,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.002383/0.2516, allocations: 2.151 MB / 444.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000956/0.2525, allocations: 0.8774 MB / 445.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2525, allocations: 0 / 445.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005303/0.2531, allocations: 0.5331 MB / 446 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.2533, allocations: 24 kB / 446 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003715/0.257, allocations: 3.551 MB / 449.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.2571, allocations: 114.8 kB / 449.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.274e-05/0.2572, allocations: 0 / 449.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.891e-05/0.2572, allocations: 39.42 kB / 449.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2572, allocations: 0 / 449.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.29, allocations: 5.421 MB / 455.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.67, allocations: 0 / 455.2 MB, free: 13.59 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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: 14.275144811719656]