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.001222/0.001222, allocations: 114 kB / 20.44 MB, free: 1.469 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.001502/0.001502, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.418/1.418, allocations: 230.5 MB / 257.4 MB, free: 8.027 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.00206/0.00206, allocations: 67.91 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2582, allocations: 53.41 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002245/0.2604, allocations: 1.243 MB / 432.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009464/0.2614, allocations: 477.2 kB / 432.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.348e-05/0.2614, allocations: 4 kB / 432.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.241e-05/0.2614, allocations: 3.938 kB / 432.9 MB, free: 4.988 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.0004721/0.2619, allocations: 83.72 kB / 433 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.262, allocations: 63.8 kB / 433 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.2622, allocations: 51.84 kB / 433.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.845e-05/0.2622, allocations: 0 / 433.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.812e-05/0.2622, allocations: 19.97 kB / 433.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.452e-05/0.2623, allocations: 27.84 kB / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.2623, allocations: 0 / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00032/0.2626, allocations: 155.7 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.803e-05/0.2627, allocations: 35.91 kB / 433.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.31e-05/0.2627, allocations: 43.67 kB / 433.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.263, allocations: 191.6 kB / 433.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.263, allocations: 0 / 433.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.263, allocations: 4 kB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.2631, allocations: 0 / 433.6 MB, free: 4.328 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.0006665/0.2637, allocations: 0.489 MB / 434 MB, free: 3.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.2638, allocations: 8.031 kB / 434.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.344e-05/0.2639, allocations: 62.67 kB / 434.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.264, allocations: 20.78 kB / 434.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.2641, allocations: 122.4 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.2641, allocations: 8.312 kB / 434.3 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.2642, allocations: 12.38 kB / 434.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.2645, allocations: 282.9 kB / 434.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2645, allocations: 3.938 kB / 434.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.2645, allocations: 4 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2645, allocations: 0 / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.2647, allocations: 148.3 kB / 434.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003918/0.2651, allocations: 356.6 kB / 435.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.2653, allocations: 193.5 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.2655, allocations: 162.1 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.2655, allocations: 7.984 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005415/0.2661, allocations: 490.8 kB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.132e-06/0.2661, allocations: 0 / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009379/0.267, allocations: 0.7644 MB / 436.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.2672, allocations: 156.5 kB / 436.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.405e-05/0.2673, allocations: 105.8 kB / 436.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.2673, allocations: 25.7 kB / 436.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.2673, allocations: 85.14 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/0.2674, allocations: 99.27 kB / 437.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.2675, allocations: 41.69 kB / 437.2 MB, free: 468 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2676, allocations: 330.8 kB / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-05/0.2677, allocations: 80.41 kB / 437.6 MB, free: 44 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.2678, allocations: 128.2 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.2682, allocations: 432.9 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2682, allocations: 3.938 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003911/0.2686, allocations: 372.5 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.584e-05/0.2687, allocations: 107.3 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2687, allocations: 0 / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2687, allocations: 4 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.707e-05/0.2688, allocations: 7.984 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2688, allocations: 0 / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.746e-05/0.2688, allocations: 27.78 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.2689, allocations: 8 kB / 438.6 MB, free: 14.91 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.0002727/0.2691, allocations: 295.7 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.2692, allocations: 31.86 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.302e-05/0.2692, allocations: 13.64 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2692, allocations: 4 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2692, allocations: 0 / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2692, allocations: 4 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.2706, allocations: 1.431 MB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2706, allocations: 0 / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-05/0.2707, allocations: 8 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2707, allocations: 3.938 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.2707, allocations: 24.05 kB / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2707, allocations: 0 / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.2707, allocations: 4 kB / 440.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.2721, allocations: 1.339 MB / 441.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.188e-05/0.2721, allocations: 23.83 kB / 441.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2722, allocations: 67.94 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.969e-05/0.2723, allocations: 11.94 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.2723, allocations: 12.47 kB / 441.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.2723, allocations: 19.98 kB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.647e-05/0.2724, allocations: 91.19 kB / 442 MB, free: 11.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2724, allocations: 8 kB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000364/0.2728, allocations: 87.88 kB / 442.1 MB, free: 11.33 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.00245/0.2752, allocations: 2.33 MB / 444.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2763, allocations: 1.074 MB / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2763, allocations: 3.938 kB / 445.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008185/0.2771, allocations: 0.9044 MB / 446.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.2773, allocations: 20 kB / 446.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.2807, allocations: 3.3 MB / 449.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.281, allocations: 0.7281 MB / 450.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.21e-05/0.281, allocations: 0 / 450.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.2811, allocations: 39.3 kB / 450.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.2811, allocations: 0 / 450.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.3135, allocations: 5.14 MB / 455.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.8, allocations: 4 kB / 455.6 MB, free: 13.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 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.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_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.1378985051997]