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.001316/0.001316, allocations: 114 kB / 20.43 MB, free: 1.457 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.001421/0.001421, allocations: 213.1 kB / 23.74 MB, free: 4.672 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.479/1.479, allocations: 230.5 MB / 257.4 MB, free: 8.02 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.00192/0.00192, allocations: 63.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2596, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002341/0.262, allocations: 1.247 MB / 432.4 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.263, allocations: 481.2 kB / 432.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.179e-05/0.263, allocations: 0 / 432.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.263, allocations: 0 / 432.9 MB, free: 4.973 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.0004644/0.2635, allocations: 83.66 kB / 433 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.2637, allocations: 71.73 kB / 433 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.2638, allocations: 47.84 kB / 433.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.2638, allocations: 0 / 433.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.389e-05/0.2638, allocations: 23.91 kB / 433.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.091e-05/0.2639, allocations: 27.91 kB / 433.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.2639, allocations: 0 / 433.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003021/0.2642, allocations: 155.7 kB / 433.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.628e-05/0.2642, allocations: 35.91 kB / 433.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.2643, allocations: 47.67 kB / 433.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.2646, allocations: 175.7 kB / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2646, allocations: 0 / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2646, allocations: 0 / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2646, allocations: 0 / 433.6 MB, free: 4.32 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.0006263/0.2652, allocations: 0.5007 MB / 434.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.2653, allocations: 12.03 kB / 434.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.867e-05/0.2654, allocations: 62.61 kB / 434.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.2655, allocations: 20.84 kB / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.2656, allocations: 114.4 kB / 434.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2656, allocations: 4.375 kB / 434.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.2656, allocations: 4.375 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.266, allocations: 286.9 kB / 434.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.266, allocations: 3.938 kB / 434.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.266, allocations: 4 kB / 434.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.266, allocations: 0 / 434.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2662, allocations: 152.2 kB / 434.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003536/0.2665, allocations: 348.7 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.2668, allocations: 197.4 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.2669, allocations: 174.1 kB / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.267, allocations: 0 / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005706/0.2675, allocations: 490.8 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.102e-06/0.2675, allocations: 0 / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001099/0.2686, allocations: 0.7644 MB / 436.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.2688, allocations: 164.5 kB / 436.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.833e-05/0.2688, allocations: 101.8 kB / 436.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.2689, allocations: 29.7 kB / 436.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.36e-05/0.2689, allocations: 81.14 kB / 437 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.922e-05/0.269, allocations: 95.23 kB / 437.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.269, allocations: 49.62 kB / 437.2 MB, free: 448 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002394/0.2693, allocations: 330.8 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.223e-05/0.2694, allocations: 88.41 kB / 437.6 MB, free: 16 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.2695, allocations: 116.3 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.2699, allocations: 436.8 kB / 438.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2699, allocations: 3.938 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003983/0.2703, allocations: 364.5 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.2704, allocations: 111.3 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2704, allocations: 0 / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2704, allocations: 0 / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.696e-05/0.2705, allocations: 7.938 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2705, allocations: 0 / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.923e-05/0.2706, allocations: 31.81 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.2706, allocations: 8 kB / 438.6 MB, free: 14.89 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.000288/0.2709, allocations: 307.7 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.2709, allocations: 27.86 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.303e-05/0.271, allocations: 5.656 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.271, allocations: 4 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.271, allocations: 0 / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.271, allocations: 0 / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.2724, allocations: 1.439 MB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2724, allocations: 0 / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.042e-05/0.2724, allocations: 4 kB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2725, allocations: 8 kB / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.2725, allocations: 15.98 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.2725, allocations: 4 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2725, allocations: 0 / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.2739, allocations: 1.335 MB / 441.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.2739, allocations: 23.78 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.274, allocations: 67.94 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.517e-05/0.2741, allocations: 16 kB / 441.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.2741, allocations: 15.97 kB / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.2742, allocations: 19.98 kB / 441.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.087e-05/0.2742, allocations: 87.22 kB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2742, allocations: 0 / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003879/0.2746, allocations: 91.86 kB / 442.1 MB, free: 11.32 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.002587/0.2772, allocations: 2.335 MB / 444.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.2784, allocations: 1.074 MB / 445.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2784, allocations: 0 / 445.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008638/0.2792, allocations: 0.9006 MB / 446.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.2795, allocations: 22.5 kB / 446.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003652/0.2832, allocations: 3.307 MB / 449.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.2836, allocations: 0.7281 MB / 450.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.714e-05/0.2836, allocations: 0 / 450.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.068e-05/0.2836, allocations: 35.42 kB / 450.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.2836, allocations: 4 kB / 450.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.3156, allocations: 5.14 MB / 455.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.24, allocations: 3.984 kB / 455.6 MB, free: 13.68 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.791300713000965]