Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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.001671/0.001671, allocations: 109.1 kB / 21.22 MB, free: 0.75 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.002088/0.002088, allocations: 208.2 kB / 24.53 MB, free: 4.148 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.381/1.381, allocations: 230.5 MB / 258.2 MB, free: 8.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.93 MB / 361.6 MB, free: 4.207 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 75.88 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3135, allocations: 66.08 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001817/0.3153, allocations: 0.4956 MB / 0.562 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003133/0.3185, allocations: 2.144 MB / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.493e-05/0.3185, allocations: 0 / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.3185, allocations: 0 / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.3185, allocations: 0 / 0.5641 GB, free: 1.672 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001409/0.3199, allocations: 0.5169 MB / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.652e-05/0.3199, allocations: 0 / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.157e-05/0.32, allocations: 7.984 kB / 0.5646 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.725e-05/0.32, allocations: 3.938 kB / 0.5646 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.692e-05/0.32, allocations: 0 / 0.5646 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.32, allocations: 4 kB / 0.5646 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.3212, allocations: 0.7564 MB / 0.5653 GB, free: 392 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.3212, allocations: 0 / 0.5653 GB, free: 392 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.3213, allocations: 7.922 kB / 0.5653 GB, free: 384 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006126/0.3219, allocations: 404.9 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3219, allocations: 3.984 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3219, allocations: 0 / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.3219, allocations: 0 / 0.5657 GB, free: 15.98 MB / 414.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.0004694/0.3224, allocations: 343.3 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3224, allocations: 8.031 kB / 0.5661 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.399e-05/0.3224, allocations: 192 / 0.5661 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.3225, allocations: 34.7 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.3225, allocations: 4.938 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.725e-05/0.3226, allocations: 106.5 kB / 0.5662 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3226, allocations: 8.375 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3226, allocations: 384 / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.029e-05/0.3227, allocations: 37.62 kB / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3227, allocations: 3.938 kB / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.603e-06/0.3227, allocations: 0 / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.3227, allocations: 4 kB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.837e-05/0.3227, allocations: 3.938 kB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002522/0.323, allocations: 208 kB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.381e-05/0.323, allocations: 18.61 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.933e-05/0.3231, allocations: 12.92 kB / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.3231, allocations: 0 / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3231, allocations: 60.2 kB / 0.5665 GB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3231, allocations: 4 kB / 0.5665 GB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001858/0.3233, allocations: 71.39 kB / 0.5666 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.3234, allocations: 81.11 kB / 0.5667 GB, free: 14.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.422e-05/0.3234, allocations: 89.86 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.3234, allocations: 25.7 kB / 0.5668 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.3235, allocations: 80.14 kB / 0.5669 GB, free: 14.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.3235, allocations: 0 / 0.5669 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.3235, allocations: 21.7 kB / 0.5669 GB, free: 14.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3237, allocations: 315 kB / 0.5672 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.3237, allocations: 0 / 0.5672 GB, free: 14.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.216e-06/0.3237, allocations: 11.88 kB / 0.5672 GB, free: 14.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.055e-05/0.3237, allocations: 68.2 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3237, allocations: 0 / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.719e-05/0.3238, allocations: 71.34 kB / 0.5673 GB, free: 14.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.3239, allocations: 31.73 kB / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3239, allocations: 0 / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3239, allocations: 0 / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.742e-05/0.3239, allocations: 8.094 kB / 0.5674 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.3239, allocations: 0 / 0.5674 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.3239, allocations: 4 kB / 0.5674 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3239, allocations: 0 / 0.5674 GB, free: 14.04 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 0.0001001/0.324, allocations: 147.5 kB / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.324, allocations: 0 / 0.5675 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.731e-05/0.3241, allocations: 7.094 kB / 0.5675 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3241, allocations: 0 / 0.5675 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3241, allocations: 0 / 0.5675 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3241, allocations: 4 kB / 0.5675 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.3243, allocations: 271.4 kB / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3243, allocations: 0 / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-06/0.3243, allocations: 0 / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3243, allocations: 3.938 kB / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3243, allocations: 7.984 kB / 0.5678 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3243, allocations: 0 / 0.5678 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3243, allocations: 0 / 0.5678 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.3245, allocations: 169.2 kB / 0.568 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.917e-06/0.3245, allocations: 11.97 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.3245, allocations: 4 kB / 0.568 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.201e-05/0.3245, allocations: 0 / 0.568 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.3246, allocations: 0 / 0.568 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.3246, allocations: 4 kB / 0.568 GB, free: 13.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.587e-05/0.3246, allocations: 79.22 kB / 0.5681 GB, free: 13.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3246, allocations: 0 / 0.5681 GB, free: 13.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.325, allocations: 135.5 kB / 0.5682 GB, free: 13.11 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.00106/0.3261, allocations: 0.9148 MB / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.3262, allocations: 67.39 kB / 0.5692 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3262, allocations: 0 / 0.5692 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.547e-05/0.3263, allocations: 55.41 kB / 0.5692 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001787/0.3265, allocations: 3.938 kB / 0.5692 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.3276, allocations: 1.207 MB / 0.5704 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3279, allocations: 0.6729 MB / 0.571 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.245e-05/0.3279, allocations: 4 kB / 0.571 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.915e-05/0.3279, allocations: 11.5 kB / 0.5711 GB, free: 10.01 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3279, allocations: 0 / 0.5711 GB, free: 10.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.353, allocations: 4.664 MB / 0.5756 GB, free: 5.453 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.2, allocations: 18.38 kB / 0.5756 GB, free: 5.441 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 13.924510129960254]