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.001389/0.001389, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001406/0.001406, allocations: 203.6 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.39/1.39, allocations: 230.6 MB / 257.5 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001547/0.001547, allocations: 47.92 kB / 377.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2418, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002492/0.2443, allocations: 1.25 MB / 432.3 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009401/0.2453, allocations: 442.4 kB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.2453, allocations: 4 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.627e-05/0.2453, allocations: 3.938 kB / 432.8 MB, free: 4.926 MB / 334.1 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.0004581/0.2458, allocations: 79.77 kB / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001526/0.246, allocations: 67.75 kB / 432.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.72e-05/0.2461, allocations: 55.83 kB / 433 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.229e-05/0.2461, allocations: 0 / 433 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.365e-05/0.2461, allocations: 19.92 kB / 433 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.465e-05/0.2462, allocations: 23.91 kB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.2462, allocations: 0 / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003035/0.2465, allocations: 159.7 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.505e-05/0.2465, allocations: 31.92 kB / 433.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.2466, allocations: 39.73 kB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002601/0.2468, allocations: 187.6 kB / 433.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2468, allocations: 0 / 433.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2469, allocations: 0 / 433.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2469, allocations: 4 kB / 433.4 MB, free: 4.273 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.0005741/0.2474, allocations: 480.8 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2475, allocations: 8.031 kB / 433.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.185e-05/0.2475, allocations: 58.67 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.2477, allocations: 20.84 kB / 434 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.2478, allocations: 118.4 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2478, allocations: 8.359 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.2478, allocations: 8.375 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.2482, allocations: 402.2 kB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2483, allocations: 3.938 kB / 434.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.2483, allocations: 8 kB / 434.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2483, allocations: 3.938 kB / 434.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.2485, allocations: 263.7 kB / 434.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000352/0.2489, allocations: 356.6 kB / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.2492, allocations: 308.8 kB / 435.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.2495, allocations: 281.4 kB / 435.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.2495, allocations: 0 / 435.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005521/0.25, allocations: 0.5802 MB / 436.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 9.41e-07/0.25, allocations: 0 / 436.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001073/0.2511, allocations: 1.001 MB / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.2512, allocations: 164.5 kB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.834e-05/0.2513, allocations: 101.9 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.2513, allocations: 25.7 kB / 437.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.2514, allocations: 93.06 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.2514, allocations: 95.23 kB / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.2515, allocations: 37.7 kB / 437.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2516, allocations: 334.8 kB / 438.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.2518, allocations: 199.8 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.252, allocations: 235.7 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.2524, allocations: 488.8 kB / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2525, allocations: 12 kB / 439 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005214/0.253, allocations: 0.4998 MB / 439.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.2531, allocations: 111.3 kB / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2531, allocations: 0 / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.2531, allocations: 0 / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.757e-05/0.2532, allocations: 4 kB / 439.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.2532, allocations: 4 kB / 439.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.858e-05/0.2532, allocations: 27.72 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.2532, allocations: 8 kB / 439.7 MB, free: 13.54 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.0002717/0.2535, allocations: 287.7 kB / 440 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.206e-05/0.2536, allocations: 28.28 kB / 440 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.2536, allocations: 13.66 kB / 440 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2536, allocations: 3.984 kB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2536, allocations: 3.984 kB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2536, allocations: 4 kB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.2548, allocations: 1.054 MB / 441.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2548, allocations: 4 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.2548, allocations: 4 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2548, allocations: 0 / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.2548, allocations: 19.98 kB / 441.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2548, allocations: 0 / 441.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2548, allocations: 0 / 441.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.2559, allocations: 0.9985 MB / 442.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.096e-05/0.256, allocations: 19.84 kB / 442.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.2561, allocations: 71.94 kB / 442.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.99e-05/0.2562, allocations: 16 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.2562, allocations: 7.984 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.2562, allocations: 16 kB / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.2563, allocations: 91.2 kB / 442.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2563, allocations: 0 / 442.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.2567, allocations: 91.88 kB / 442.4 MB, free: 10.68 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.002366/0.259, allocations: 2.16 MB / 444.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009262/0.2599, allocations: 0.8735 MB / 445.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2599, allocations: 0 / 445.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.2605, allocations: 0.537 MB / 446 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.2607, allocations: 22.58 kB / 446 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.2643, allocations: 3.55 MB / 449.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.2644, allocations: 114.8 kB / 449.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.333e-05/0.2644, allocations: 4.125 kB / 449.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.297e-05/0.2644, allocations: 39.42 kB / 449.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2644, allocations: 0 / 449.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2944, allocations: 5.452 MB / 455.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.72, allocations: 4 kB / 455.2 MB, free: 13.75 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 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.mat","/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_4.1.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: 13.058222719002515]