Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 184.2 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 55.92 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2422, allocations: 52.17 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002448/0.2446, allocations: 1.234 MB / 423.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009692/0.2456, allocations: 445.1 kB / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.891e-05/0.2456, allocations: 4 kB / 424.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.875e-05/0.2457, allocations: 7.922 kB / 424.2 MB, free: 12.7 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0004861/0.2461, allocations: 71.73 kB / 424.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001575/0.2463, allocations: 63.81 kB / 424.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.2464, allocations: 55.83 kB / 424.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.2465, allocations: 0 / 424.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.249e-05/0.2465, allocations: 23.97 kB / 424.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.292e-05/0.2465, allocations: 15.92 kB / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.2466, allocations: 0 / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003335/0.2469, allocations: 155.7 kB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.165e-05/0.2469, allocations: 35.91 kB / 424.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.247, allocations: 39.73 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.2473, allocations: 180.9 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2473, allocations: 3.938 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2473, allocations: 0 / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2473, allocations: 7.938 kB / 424.9 MB, free: 12.06 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.0005862/0.2479, allocations: 492.7 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2479, allocations: 8.031 kB / 425.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.702e-05/0.248, allocations: 54.73 kB / 425.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.2481, allocations: 28.78 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.2482, allocations: 114.4 kB / 425.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.2482, allocations: 8.375 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.2483, allocations: 8.375 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.2487, allocations: 402.2 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2487, allocations: 3.938 kB / 426 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.2487, allocations: 8 kB / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2487, allocations: 0 / 426 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.249, allocations: 267.7 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.2493, allocations: 356.6 kB / 426.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.2497, allocations: 312.8 kB / 426.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.2499, allocations: 277.5 kB / 427.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.25, allocations: 7.922 kB / 427.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005992/0.2505, allocations: 0.5764 MB / 427.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.443e-06/0.2506, allocations: 0 / 427.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001158/0.2517, allocations: 0.9939 MB / 428.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.2518, allocations: 160.5 kB / 428.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.748e-05/0.2519, allocations: 113.8 kB / 429 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.2519, allocations: 25.7 kB / 429 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.252, allocations: 85.14 kB / 429.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.104e-05/0.2521, allocations: 99.22 kB / 429.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.868e-05/0.2521, allocations: 45.69 kB / 429.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2523, allocations: 326.8 kB / 429.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.2525, allocations: 203.8 kB / 429.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2527, allocations: 243.6 kB / 430 MB, free: 6.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004633/0.2532, allocations: 480.9 kB / 430.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2532, allocations: 7.938 kB / 430.5 MB, free: 6.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005455/0.2537, allocations: 0.4998 MB / 431 MB, free: 5.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.901e-05/0.2538, allocations: 107.3 kB / 431.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2538, allocations: 0 / 431.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.2538, allocations: 0 / 431.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.987e-05/0.2539, allocations: 7.984 kB / 431.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.2539, allocations: 4 kB / 431.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.254, allocations: 23.78 kB / 431.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.254, allocations: 8 kB / 431.2 MB, free: 5.316 MB / 334.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.0002692/0.2543, allocations: 291.6 kB / 431.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.2543, allocations: 27.84 kB / 431.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.711e-05/0.2543, allocations: 13.66 kB / 431.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2543, allocations: 0 / 431.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2543, allocations: 0 / 431.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2543, allocations: 4 kB / 431.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.2555, allocations: 1.054 MB / 432.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.2555, allocations: 8.062 kB / 432.5 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.022e-05/0.2555, allocations: 4 kB / 432.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2555, allocations: 0 / 432.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.2556, allocations: 19.98 kB / 432.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.592e-06/0.2556, allocations: 0 / 432.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2556, allocations: 0 / 432.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.2567, allocations: 1.002 MB / 433.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.2567, allocations: 19.84 kB / 433.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.2568, allocations: 67.94 kB / 433.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.708e-05/0.2569, allocations: 16 kB / 433.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.098e-05/0.2569, allocations: 11.98 kB / 433.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.257, allocations: 19.98 kB / 433.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.67e-05/0.257, allocations: 83.22 kB / 433.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.257, allocations: 0 / 433.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003641/0.2574, allocations: 95.86 kB / 433.9 MB, free: 2.457 MB / 334.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.002421/0.2598, allocations: 2.143 MB / 436 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009986/0.2608, allocations: 0.8775 MB / 436.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2608, allocations: 0 / 436.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005607/0.2614, allocations: 0.5332 MB / 437.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.2616, allocations: 23.98 kB / 437.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004151/0.2658, allocations: 3.551 MB / 441 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.2659, allocations: 134.5 kB / 441.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.349e-05/0.2659, allocations: 4.125 kB / 441.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.266, allocations: 35.42 kB / 441.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.266, allocations: 0 / 441.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04335/0.3093, allocations: 5.41 MB / 446.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.88, allocations: 15.17 kB / 446.6 MB, free: 5.562 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.376211938913912]