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.001789/0.001789, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002486/0.002486, allocations: 211.9 kB / 23.74 MB, free: 4.656 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.554/1.554, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2188/0.2188, allocations: 44.9 MB / 358.8 MB, free: 6.32 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.002035/0.002035, allocations: 63.91 kB / 0.4931 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3906, allocations: 65.48 MB / 0.557 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001703/0.3923, allocations: 0.4964 MB / 0.5575 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.396, allocations: 2.137 MB / 0.5596 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.923e-05/0.396, allocations: 0 / 0.5596 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.396, allocations: 0 / 0.5596 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.652e-06/0.396, allocations: 0 / 0.5596 GB, free: 5.188 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.001711/0.3977, allocations: 0.5219 MB / 0.5601 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.374e-05/0.3978, allocations: 4 kB / 0.5601 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.3978, allocations: 0 / 0.5601 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.3978, allocations: 4 kB / 0.5601 GB, free: 4.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.3979, allocations: 3.938 kB / 0.5601 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-06/0.3979, allocations: 0 / 0.5601 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.3992, allocations: 0.7603 MB / 0.5609 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.3992, allocations: 3.984 kB / 0.5609 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.459e-05/0.3992, allocations: 0 / 0.5609 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.3998, allocations: 396.9 kB / 0.5612 GB, free: 3.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3998, allocations: 8 kB / 0.5612 GB, free: 3.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3998, allocations: 0 / 0.5612 GB, free: 3.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.3998, allocations: 0 / 0.5612 GB, free: 3.492 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.0004539/0.4003, allocations: 339.3 kB / 0.5616 GB, free: 3.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.4003, allocations: 16.03 kB / 0.5616 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.4004, allocations: 34.7 kB / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/0.4004, allocations: 4.938 kB / 0.5616 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.4e-05/0.4005, allocations: 106.5 kB / 0.5617 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.4005, allocations: 8.312 kB / 0.5617 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.405e-06/0.4005, allocations: 384 / 0.5617 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.848e-05/0.4006, allocations: 37.77 kB / 0.5618 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.4006, allocations: 0 / 0.5618 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.4006, allocations: 0 / 0.5618 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.4006, allocations: 0 / 0.5618 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.209e-05/0.4007, allocations: 12 kB / 0.5618 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.4009, allocations: 200 kB / 0.562 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.818e-05/0.401, allocations: 26.52 kB / 0.562 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.844e-05/0.401, allocations: 8.922 kB / 0.562 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.401, allocations: 0 / 0.562 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.4011, allocations: 64.25 kB / 0.5621 GB, free: 2.508 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.4011, allocations: 0 / 0.5621 GB, free: 2.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002074/0.4013, allocations: 71.39 kB / 0.5621 GB, free: 2.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.4014, allocations: 77.11 kB / 0.5622 GB, free: 2.332 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.707e-05/0.4014, allocations: 97.84 kB / 0.5623 GB, free: 2.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.4015, allocations: 25.7 kB / 0.5623 GB, free: 2.195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.4015, allocations: 80.14 kB / 0.5624 GB, free: 2.113 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.4015, allocations: 4 kB / 0.5624 GB, free: 2.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.4016, allocations: 13.84 kB / 0.5624 GB, free: 2.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4017, allocations: 318.8 kB / 0.5627 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.419e-05/0.4017, allocations: 4 kB / 0.5627 GB, free: 1.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.457e-06/0.4017, allocations: 4 kB / 0.5627 GB, free: 1.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.977e-05/0.4018, allocations: 64.25 kB / 0.5628 GB, free: 1.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4018, allocations: 3.938 kB / 0.5628 GB, free: 1.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.852e-05/0.4019, allocations: 67.36 kB / 0.5629 GB, free: 1.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.4019, allocations: 33.8 kB / 0.5629 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.4019, allocations: 4 kB / 0.5629 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.4019, allocations: 3.938 kB / 0.5629 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.565e-05/0.402, allocations: 0 / 0.5629 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.402, allocations: 3.984 kB / 0.5629 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.402, allocations: 3.938 kB / 0.5629 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-06/0.402, allocations: 4 kB / 0.5629 GB, free: 1.543 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.0001122/0.4021, allocations: 139.5 kB / 0.563 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.4021, allocations: 4 kB / 0.563 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.4021, allocations: 7.141 kB / 0.5631 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4021, allocations: 7.938 kB / 0.5631 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4022, allocations: 0 / 0.5631 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4022, allocations: 0 / 0.5631 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.4024, allocations: 271.4 kB / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4024, allocations: 0 / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.4024, allocations: 0 / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.4024, allocations: 0 / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.4024, allocations: 0 / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4025, allocations: 0 / 0.5633 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.4025, allocations: 3.938 kB / 0.5633 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001453/0.4026, allocations: 181.2 kB / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-06/0.4026, allocations: 0 / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.4026, allocations: 0 / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.129e-05/0.4027, allocations: 4 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.4027, allocations: 0 / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.4027, allocations: 0 / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.4027, allocations: 75.31 kB / 0.5636 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4027, allocations: 4 kB / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004789/0.4032, allocations: 139.5 kB / 0.5637 GB, free: 0.625 MB / 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.001157/0.4043, allocations: 0.9153 MB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.4045, allocations: 63.41 kB / 0.5647 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4045, allocations: 3.938 kB / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.178e-05/0.4045, allocations: 63.39 kB / 0.5647 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.4047, allocations: 2.188 kB / 0.5647 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.4058, allocations: 1.203 MB / 0.5659 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.4061, allocations: 0.6768 MB / 0.5666 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.081e-05/0.4062, allocations: 0 / 0.5666 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.4062, allocations: 7.438 kB / 0.5666 GB, free: 13.53 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4062, allocations: 0 / 0.5666 GB, free: 13.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.439, allocations: 4.653 MB / 0.5711 GB, free: 9.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.62, allocations: 2.578 kB / 0.5711 GB, free: 9.012 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.706128430996614]