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.001987/0.001987, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002618/0.002618, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.701/1.701, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.2505/0.2505, allocations: 44.94 MB / 358.8 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 179] 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.002271/0.002271, allocations: 63.89 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3844, allocations: 65.48 MB / 0.557 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00209/0.3865, allocations: 0.4963 MB / 0.5574 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003729/0.3902, allocations: 2.003 MB / 0.5594 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.945e-05/0.3902, allocations: 0 / 0.5594 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.068e-05/0.3902, allocations: 0 / 0.5594 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.3902, allocations: 4 kB / 0.5594 GB, free: 5.039 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.001799/0.392, allocations: 0.5218 MB / 0.5599 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.607e-05/0.3921, allocations: 4 kB / 0.5599 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.341e-05/0.3921, allocations: 3.938 kB / 0.5599 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.153e-05/0.3922, allocations: 0 / 0.5599 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.019e-05/0.3922, allocations: 4 kB / 0.5599 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3922, allocations: 0 / 0.5599 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.3935, allocations: 0.6393 MB / 0.5605 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.754e-05/0.3936, allocations: 3.984 kB / 0.5606 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.3936, allocations: 4 kB / 0.5606 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007039/0.3943, allocations: 384.9 kB / 0.5609 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3943, allocations: 0 / 0.5609 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3943, allocations: 0 / 0.5609 GB, free: 3.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.3943, allocations: 4 kB / 0.5609 GB, free: 3.48 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.0005595/0.3949, allocations: 343.3 kB / 0.5613 GB, free: 3.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.3949, allocations: 16.03 kB / 0.5613 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.395, allocations: 34.7 kB / 0.5613 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.395, allocations: 0.9375 kB / 0.5613 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.3952, allocations: 102.5 kB / 0.5614 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.3952, allocations: 384 / 0.5614 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.3952, allocations: 4.375 kB / 0.5614 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.3953, allocations: 67.52 kB / 0.5615 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3953, allocations: 0 / 0.5615 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3953, allocations: 0 / 0.5615 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.3953, allocations: 3.984 kB / 0.5615 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.151e-05/0.3954, allocations: 37.64 kB / 0.5615 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.3957, allocations: 204 kB / 0.5617 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.3958, allocations: 44.31 kB / 0.5617 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.589e-05/0.3959, allocations: 38.62 kB / 0.5618 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.3959, allocations: 0 / 0.5618 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.353e-05/0.396, allocations: 68.19 kB / 0.5619 GB, free: 2.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.343e-06/0.396, allocations: 0 / 0.5619 GB, free: 2.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002834/0.3962, allocations: 122.8 kB / 0.562 GB, free: 2.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.3963, allocations: 77.11 kB / 0.562 GB, free: 2.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.412e-05/0.3964, allocations: 101.9 kB / 0.5621 GB, free: 2.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3964, allocations: 25.7 kB / 0.5622 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.728e-05/0.3965, allocations: 80.14 kB / 0.5622 GB, free: 1.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.3965, allocations: 4 kB / 0.5622 GB, free: 1.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.3965, allocations: 13.72 kB / 0.5623 GB, free: 1.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3967, allocations: 314.8 kB / 0.5626 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.454e-05/0.3967, allocations: 25.7 kB / 0.5626 GB, free: 1.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.538e-05/0.3967, allocations: 29.7 kB / 0.5626 GB, free: 1.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.406e-05/0.3968, allocations: 72.19 kB / 0.5627 GB, free: 1.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3968, allocations: 8 kB / 0.5627 GB, free: 1.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001046/0.3969, allocations: 97.06 kB / 0.5628 GB, free: 1.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.397, allocations: 37.62 kB / 0.5628 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.397, allocations: 0 / 0.5628 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.397, allocations: 0 / 0.5628 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.869e-05/0.397, allocations: 4 kB / 0.5628 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.397, allocations: 0 / 0.5628 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.397, allocations: 0 / 0.5628 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.397, allocations: 0 / 0.5628 GB, free: 1.246 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.0001322/0.3972, allocations: 139.5 kB / 0.563 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.3972, allocations: 4.031 kB / 0.563 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.3972, allocations: 7.156 kB / 0.563 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3972, allocations: 0 / 0.563 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3972, allocations: 0 / 0.563 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3972, allocations: 7.984 kB / 0.563 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.3975, allocations: 293 kB / 0.5632 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3975, allocations: 0 / 0.5632 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.3975, allocations: 4 kB / 0.5633 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3975, allocations: 0 / 0.5633 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.3976, allocations: 4 kB / 0.5633 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3976, allocations: 0 / 0.5633 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3976, allocations: 4.031 kB / 0.5633 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.3977, allocations: 202.8 kB / 0.5635 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.3977, allocations: 0 / 0.5635 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.3977, allocations: 4 kB / 0.5635 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.158e-05/0.3978, allocations: 0 / 0.5635 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.192e-05/0.3978, allocations: 3.984 kB / 0.5635 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3978, allocations: 3.938 kB / 0.5635 GB, free: 484 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.257e-05/0.3979, allocations: 75.28 kB / 0.5635 GB, free: 408 kB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3979, allocations: 4 kB / 0.5635 GB, free: 404 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004675/0.3983, allocations: 135.5 kB / 0.5637 GB, free: 268 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.00128/0.3996, allocations: 0.9658 MB / 0.5646 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.3998, allocations: 126.7 kB / 0.5647 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3998, allocations: 0 / 0.5647 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.043e-05/0.3998, allocations: 81.11 kB / 0.5648 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.4, allocations: 4.156 kB / 0.5648 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.4013, allocations: 1.34 MB / 0.5661 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.593e-05/0.4014, allocations: 55.36 kB / 0.5662 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.516e-05/0.4014, allocations: 0 / 0.5662 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.593e-05/0.4014, allocations: 7.438 kB / 0.5662 GB, free: 13.47 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4014, allocations: 4 kB / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03238/0.4338, allocations: 5.079 MB / 0.5711 GB, free: 8.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.67, allocations: 0 / 0.5711 GB, free: 8.52 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: 15.016369107179344]