Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.001559/0.001559, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001861/0.001861, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2186/0.2186, allocations: 46.94 MB / 361.7 MB, free: 4.23 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 63.89 kB / 0.4969 GB, free: 7.871 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.321, allocations: 66.04 MB / 0.5614 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001639/0.3226, allocations: 0.496 MB / 0.5619 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003086/0.3257, allocations: 2.132 MB / 0.564 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.3258, allocations: 4 kB / 0.564 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.218e-05/0.3258, allocations: 0 / 0.564 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.625e-06/0.3258, allocations: 0 / 0.564 GB, free: 1.785 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3274, allocations: 0.5218 MB / 0.5645 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.3274, allocations: 4 kB / 0.5645 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.3275, allocations: 0 / 0.5645 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.584e-05/0.3275, allocations: 8 kB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.616e-05/0.3275, allocations: 0 / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.3275, allocations: 3.938 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.3287, allocations: 0.7603 MB / 0.5653 GB, free: 500 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.745e-06/0.3287, allocations: 0 / 0.5653 GB, free: 500 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.3287, allocations: 0 / 0.5653 GB, free: 500 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.3293, allocations: 397.1 kB / 0.5656 GB, free: 104 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.3293, allocations: 4 kB / 0.5656 GB, free: 100 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3293, allocations: 0 / 0.5656 GB, free: 100 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.3293, allocations: 0 / 0.5656 GB, free: 100 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004972/0.3298, allocations: 343.3 kB / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3299, allocations: 12.03 kB / 0.566 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.994e-05/0.3299, allocations: 8.188 kB / 0.566 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.261e-05/0.33, allocations: 38.64 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.33, allocations: 0.9375 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.3301, allocations: 106.5 kB / 0.5661 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-06/0.3301, allocations: 4.375 kB / 0.5661 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.3301, allocations: 384 / 0.5661 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.3302, allocations: 37.64 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3302, allocations: 0 / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.3302, allocations: 0 / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3302, allocations: 0 / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.639e-05/0.3303, allocations: 11.98 kB / 0.5662 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002763/0.3305, allocations: 204 kB / 0.5664 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.066e-05/0.3306, allocations: 26.5 kB / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.426e-05/0.3306, allocations: 12.86 kB / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-06/0.3306, allocations: 0 / 0.5664 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.644e-05/0.3307, allocations: 68.2 kB / 0.5665 GB, free: 15.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3307, allocations: 0 / 0.5665 GB, free: 15.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002227/0.3309, allocations: 75.33 kB / 0.5665 GB, free: 15.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/0.331, allocations: 77.11 kB / 0.5666 GB, free: 14.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.48e-05/0.331, allocations: 89.86 kB / 0.5667 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.3311, allocations: 25.7 kB / 0.5667 GB, free: 14.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.3311, allocations: 84.14 kB / 0.5668 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3311, allocations: 0 / 0.5668 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.3311, allocations: 13.84 kB / 0.5668 GB, free: 14.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3313, allocations: 322.8 kB / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.3313, allocations: 0 / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.347e-06/0.3313, allocations: 4 kB / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.316e-05/0.3314, allocations: 68.2 kB / 0.5672 GB, free: 14.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3314, allocations: 0 / 0.5672 GB, free: 14.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.441e-05/0.3315, allocations: 71.28 kB / 0.5673 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.3315, allocations: 33.7 kB / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3315, allocations: 4.094 kB / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3315, allocations: 0 / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.378e-05/0.3316, allocations: 0 / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3316, allocations: 0 / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.3316, allocations: 0 / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.3316, allocations: 4 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 9.916e-05/0.3317, allocations: 143.5 kB / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.3317, allocations: 4 kB / 0.5675 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.025e-05/0.3317, allocations: 7.141 kB / 0.5675 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3317, allocations: 4 kB / 0.5675 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3317, allocations: 0 / 0.5675 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3317, allocations: 0 / 0.5675 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.332, allocations: 271.3 kB / 0.5677 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.332, allocations: 0 / 0.5677 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-06/0.332, allocations: 0 / 0.5677 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.332, allocations: 0 / 0.5677 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.332, allocations: 4 kB / 0.5677 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.332, allocations: 0 / 0.5677 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.332, allocations: 0 / 0.5677 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.3322, allocations: 177.2 kB / 0.5679 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-06/0.3322, allocations: 3.938 kB / 0.5679 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.3322, allocations: 4 kB / 0.5679 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.328e-05/0.3322, allocations: 3.984 kB / 0.5679 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.3322, allocations: 0 / 0.5679 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.3322, allocations: 3.938 kB / 0.5679 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.524e-05/0.3323, allocations: 79.22 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3323, allocations: 4.031 kB / 0.568 GB, free: 13.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000472/0.3328, allocations: 139.5 kB / 0.5681 GB, free: 13.21 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.001146/0.3339, allocations: 0.9033 MB / 0.569 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.334, allocations: 63.39 kB / 0.5691 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.334, allocations: 4 kB / 0.5691 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.608e-05/0.3341, allocations: 59.34 kB / 0.5691 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.3343, allocations: 0 / 0.5691 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.3354, allocations: 1.215 MB / 0.5703 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3357, allocations: 0.6729 MB / 0.571 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.094e-05/0.3357, allocations: 4 kB / 0.571 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.254e-05/0.3357, allocations: 11.44 kB / 0.571 GB, free: 10.12 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3357, allocations: 0 / 0.571 GB, free: 10.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.3611, allocations: 4.676 MB / 0.5755 GB, free: 5.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.42, allocations: 8 kB / 0.5756 GB, free: 5.582 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.309717466006987]