Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001912/0.001912, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002212/0.002212, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2328/0.2328, allocations: 44.94 MB / 358.8 MB, free: 6.152 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 70.7 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4093, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001784/0.4111, allocations: 0.5005 MB / 0.5574 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.4144, allocations: 2.001 MB / 0.5594 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.4144, allocations: 0 / 0.5594 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.666e-05/0.4144, allocations: 0 / 0.5594 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.4144, allocations: 3.938 kB / 0.5594 GB, free: 5.023 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001698/0.4161, allocations: 0.514 MB / 0.5599 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.226e-05/0.4161, allocations: 3.938 kB / 0.5599 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.133e-05/0.4162, allocations: 4 kB / 0.5599 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.563e-05/0.4162, allocations: 0 / 0.5599 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.773e-05/0.4162, allocations: 0 / 0.5599 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.4162, allocations: 3.938 kB / 0.5599 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.4174, allocations: 0.6433 MB / 0.5605 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.24e-05/0.4174, allocations: 4 kB / 0.5606 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.091e-05/0.4175, allocations: 0 / 0.5606 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005962/0.418, allocations: 388.9 kB / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4181, allocations: 0 / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4181, allocations: 0 / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.4181, allocations: 4 kB / 0.5609 GB, free: 3.469 MB / 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.0004707/0.4185, allocations: 345.7 kB / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.4186, allocations: 8.031 kB / 0.5613 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.4186, allocations: 38.7 kB / 0.5613 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.4187, allocations: 8.922 kB / 0.5613 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.4188, allocations: 110.5 kB / 0.5614 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.4188, allocations: 384 / 0.5614 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.4188, allocations: 384 / 0.5614 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.4189, allocations: 59.53 kB / 0.5615 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4189, allocations: 0 / 0.5615 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-06/0.4189, allocations: 0 / 0.5615 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.4189, allocations: 8 kB / 0.5615 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.066e-05/0.419, allocations: 37.62 kB / 0.5615 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002731/0.4192, allocations: 196 kB / 0.5617 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.152e-05/0.4193, allocations: 48.31 kB / 0.5617 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.824e-05/0.4194, allocations: 38.61 kB / 0.5618 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.4194, allocations: 4 kB / 0.5618 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.64e-05/0.4194, allocations: 56.27 kB / 0.5618 GB, free: 2.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.4194, allocations: 3.938 kB / 0.5618 GB, free: 2.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002422/0.4197, allocations: 130.7 kB / 0.562 GB, free: 2.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.4198, allocations: 81.11 kB / 0.562 GB, free: 2.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.191e-05/0.4198, allocations: 93.86 kB / 0.5621 GB, free: 2.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.4198, allocations: 25.7 kB / 0.5622 GB, free: 1.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.4199, allocations: 80.14 kB / 0.5622 GB, free: 1.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.335e-05/0.4199, allocations: 0 / 0.5622 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.4199, allocations: 13.72 kB / 0.5623 GB, free: 1.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4201, allocations: 318.8 kB / 0.5626 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.857e-05/0.4201, allocations: 33.64 kB / 0.5626 GB, free: 1.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.247e-05/0.4201, allocations: 25.7 kB / 0.5626 GB, free: 1.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.954e-05/0.4202, allocations: 76.39 kB / 0.5627 GB, free: 1.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4202, allocations: 3.938 kB / 0.5627 GB, free: 1.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.917e-05/0.4203, allocations: 93.05 kB / 0.5628 GB, free: 1.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.992e-05/0.4204, allocations: 37.7 kB / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.4204, allocations: 0 / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4204, allocations: 0 / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.787e-05/0.4204, allocations: 0 / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.4204, allocations: 0 / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.4204, allocations: 0 / 0.5628 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.4204, allocations: 4 kB / 0.5628 GB, free: 1.234 MB / 398.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.0001097/0.4205, allocations: 143.5 kB / 0.563 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.4206, allocations: 0 / 0.563 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.109e-05/0.4206, allocations: 7.156 kB / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.4206, allocations: 0 / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4206, allocations: 0 / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.4206, allocations: 0 / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.4209, allocations: 301 kB / 0.5632 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4209, allocations: 0 / 0.5632 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-06/0.4209, allocations: 0 / 0.5632 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4209, allocations: 3.984 kB / 0.5633 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.4209, allocations: 0 / 0.5633 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.4209, allocations: 8.031 kB / 0.5633 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4209, allocations: 4 kB / 0.5633 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.4211, allocations: 194.8 kB / 0.5635 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-06/0.4211, allocations: 4 kB / 0.5635 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.4211, allocations: 0 / 0.5635 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.111e-05/0.4212, allocations: 7.938 kB / 0.5635 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.4212, allocations: 0 / 0.5635 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.4212, allocations: 7.984 kB / 0.5635 GB, free: 468 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.552e-05/0.4212, allocations: 75.28 kB / 0.5635 GB, free: 392 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4212, allocations: 0 / 0.5635 GB, free: 392 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004794/0.4217, allocations: 139.5 kB / 0.5637 GB, free: 252 kB / 398.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.001284/0.423, allocations: 0.975 MB / 0.5646 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.4232, allocations: 118.8 kB / 0.5647 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4232, allocations: 0 / 0.5647 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.987e-05/0.4232, allocations: 89.19 kB / 0.5648 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.4234, allocations: 4 kB / 0.5648 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.4247, allocations: 1.336 MB / 0.5661 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.432e-05/0.4248, allocations: 55.36 kB / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.232e-05/0.4248, allocations: 0 / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.4248, allocations: 11.44 kB / 0.5662 GB, free: 13.45 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4248, allocations: 0 / 0.5662 GB, free: 13.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03584/0.4607, allocations: 5.069 MB / 0.5711 GB, free: 8.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.73, allocations: 3.938 kB / 0.5712 GB, free: 8.508 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.742182753048837]