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.00159/0.00159, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00142/0.00142, allocations: 210 kB / 23.72 MB, free: 4.531 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2285/0.2285, allocations: 46.96 MB / 360.9 MB, free: 4.051 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3269, allocations: 66.04 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001993/0.3289, allocations: 0.5077 MB / 0.5611 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.3323, allocations: 1.996 MB / 0.563 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.869e-05/0.3323, allocations: 0 / 0.563 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.856e-05/0.3323, allocations: 0 / 0.563 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-06/0.3323, allocations: 4 kB / 0.563 GB, free: 1.727 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.001636/0.334, allocations: 0.5178 MB / 0.5635 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.539e-05/0.334, allocations: 4 kB / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.256e-05/0.3341, allocations: 0 / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.842e-05/0.3341, allocations: 0 / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.324e-05/0.3341, allocations: 7.938 kB / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.3341, allocations: 0 / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.3354, allocations: 0.698 MB / 0.5642 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.355e-06/0.3354, allocations: 3.938 kB / 0.5642 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.854e-05/0.3354, allocations: 0 / 0.5642 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005652/0.3359, allocations: 380.9 kB / 0.5646 GB, free: 128 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.336, allocations: 4 kB / 0.5646 GB, free: 124 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.336, allocations: 0 / 0.5646 GB, free: 124 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.336, allocations: 0 / 0.5646 GB, free: 124 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.0004814/0.3364, allocations: 347.3 kB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3365, allocations: 8.031 kB / 0.5649 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.588e-05/0.3366, allocations: 42.69 kB / 0.565 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.418e-05/0.3366, allocations: 0.9375 kB / 0.565 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.3367, allocations: 106.5 kB / 0.5651 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.3367, allocations: 384 / 0.5651 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.3367, allocations: 4.375 kB / 0.5651 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.3368, allocations: 59.53 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3368, allocations: 4 kB / 0.5652 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.3368, allocations: 0 / 0.5652 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3368, allocations: 0 / 0.5652 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.831e-05/0.3369, allocations: 37.62 kB / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002438/0.3371, allocations: 204 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.753e-05/0.3372, allocations: 52.3 kB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.204e-05/0.3372, allocations: 38.56 kB / 0.5655 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.462e-06/0.3373, allocations: 0 / 0.5655 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.3373, allocations: 60.27 kB / 0.5655 GB, free: 15.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3373, allocations: 4 kB / 0.5655 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002433/0.3375, allocations: 126.7 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.3376, allocations: 77.11 kB / 0.5657 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.779e-05/0.3376, allocations: 89.86 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3377, allocations: 33.64 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.457e-05/0.3377, allocations: 80.14 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.3377, allocations: 4 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.3378, allocations: 13.7 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3379, allocations: 314.8 kB / 0.5662 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.3379, allocations: 29.7 kB / 0.5663 GB, free: 14.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.139e-05/0.3379, allocations: 33.83 kB / 0.5663 GB, free: 14.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.374e-05/0.338, allocations: 64.2 kB / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.338, allocations: 3.938 kB / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001082/0.3381, allocations: 101 kB / 0.5665 GB, free: 13.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.3381, allocations: 32.2 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3381, allocations: 0 / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3382, allocations: 0 / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.3382, allocations: 0 / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3382, allocations: 4 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3382, allocations: 4.094 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.3382, allocations: 0 / 0.5665 GB, free: 13.89 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.0001188/0.3383, allocations: 147.5 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.3383, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.3384, allocations: 3.156 kB / 0.5666 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3384, allocations: 4 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3384, allocations: 0 / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3384, allocations: 4 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.3387, allocations: 293 kB / 0.5669 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3387, allocations: 0 / 0.5669 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-06/0.3387, allocations: 12.02 kB / 0.5669 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3387, allocations: 3.984 kB / 0.5669 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.3387, allocations: 4 kB / 0.5669 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.3387, allocations: 0 / 0.5669 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3387, allocations: 0 / 0.5669 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.3388, allocations: 198.8 kB / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.539e-06/0.3388, allocations: 0 / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.3388, allocations: 4 kB / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.837e-05/0.3389, allocations: 0 / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.3389, allocations: 0 / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3389, allocations: 3.938 kB / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.442e-05/0.3389, allocations: 83.25 kB / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3389, allocations: 0 / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004606/0.3394, allocations: 143.5 kB / 0.5674 GB, free: 12.89 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.001136/0.3405, allocations: 0.9575 MB / 0.5683 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.3407, allocations: 122.8 kB / 0.5684 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3407, allocations: 4 kB / 0.5684 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.6e-05/0.3407, allocations: 85.11 kB / 0.5685 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.3409, allocations: 0 / 0.5685 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3421, allocations: 1.34 MB / 0.5698 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.091e-05/0.3422, allocations: 55.36 kB / 0.5699 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.3422, allocations: 0 / 0.5699 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.3422, allocations: 7.625 kB / 0.5699 GB, free: 10.1 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3422, allocations: 4 kB / 0.5699 GB, free: 10.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.3741, allocations: 5.101 MB / 0.5749 GB, free: 5.129 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.29, allocations: 4.062 kB / 0.5749 GB, free: 5.125 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.csv","/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.245291472994722]