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.001432/0.001432, allocations: 118.3 kB / 18.5 MB, free: 4.562 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.001651/0.001651, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.533/1.533, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.2586/0.2586, allocations: 44.9 MB / 355.8 MB, free: 12.33 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",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.003093/0.003093, allocations: 63.91 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1646, allocations: 65.43 MB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001807/0.1664, allocations: 0.4989 MB / 0.5529 GB, free: 9.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003207/0.1696, allocations: 2.119 MB / 0.555 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.655e-05/0.1696, allocations: 0 / 0.555 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.1696, allocations: 0 / 0.555 GB, free: 7.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.1696, allocations: 0 / 0.555 GB, free: 7.52 MB / 414.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.001523/0.1711, allocations: 0.4981 MB / 0.5555 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.341e-05/0.1712, allocations: 11.94 kB / 0.5555 GB, free: 7.012 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.1712, allocations: 4 kB / 0.5555 GB, free: 7.008 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.903e-05/0.1713, allocations: 3.984 kB / 0.5555 GB, free: 7.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.656e-05/0.1713, allocations: 0 / 0.5555 GB, free: 7.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-06/0.1713, allocations: 3.938 kB / 0.5555 GB, free: 7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.1725, allocations: 0.6668 MB / 0.5561 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.087e-06/0.1725, allocations: 0 / 0.5561 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.786e-05/0.1725, allocations: 0 / 0.5561 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006741/0.1732, allocations: 391.3 kB / 0.5565 GB, free: 5.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1732, allocations: 4 kB / 0.5565 GB, free: 5.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.14e-06/0.1732, allocations: 4 kB / 0.5565 GB, free: 5.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1732, allocations: 0 / 0.5565 GB, free: 5.941 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.0005763/0.1738, allocations: 416.5 kB / 0.5569 GB, free: 5.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.1738, allocations: 12.03 kB / 0.5569 GB, free: 5.469 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.186e-05/0.1739, allocations: 4.188 kB / 0.5569 GB, free: 5.465 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.1739, allocations: 38.69 kB / 0.557 GB, free: 5.418 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.1739, allocations: 0.9375 kB / 0.557 GB, free: 5.418 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.1741, allocations: 164.4 kB / 0.5571 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.1741, allocations: 384 / 0.5571 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.1742, allocations: 4.375 kB / 0.5571 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.1743, allocations: 33.58 kB / 0.5572 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1743, allocations: 4 kB / 0.5572 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1743, allocations: 4 kB / 0.5572 GB, free: 5.168 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1743, allocations: 3.938 kB / 0.5572 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.773e-05/0.1743, allocations: 7.984 kB / 0.5572 GB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003635/0.1747, allocations: 228.8 kB / 0.5574 GB, free: 4.883 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/0.1748, allocations: 30.53 kB / 0.5574 GB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.1748, allocations: 8.922 kB / 0.5574 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.1748, allocations: 4 kB / 0.5575 GB, free: 4.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/0.1749, allocations: 68.2 kB / 0.5575 GB, free: 4.746 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.1749, allocations: 0 / 0.5575 GB, free: 4.746 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002577/0.1751, allocations: 67.39 kB / 0.5576 GB, free: 4.668 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1752, allocations: 81.11 kB / 0.5577 GB, free: 4.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.365e-05/0.1753, allocations: 89.86 kB / 0.5577 GB, free: 4.473 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.1753, allocations: 25.7 kB / 0.5578 GB, free: 4.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.1754, allocations: 84.27 kB / 0.5578 GB, free: 4.355 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.1754, allocations: 7.953 kB / 0.5579 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.1755, allocations: 13.72 kB / 0.5579 GB, free: 4.328 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1757, allocations: 314.8 kB / 0.5582 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.615e-05/0.1757, allocations: 7.938 kB / 0.5582 GB, free: 4.004 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.1757, allocations: 0 / 0.5582 GB, free: 4.004 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.149e-05/0.1757, allocations: 68.2 kB / 0.5582 GB, free: 3.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1758, allocations: 0 / 0.5582 GB, free: 3.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001016/0.1759, allocations: 75.45 kB / 0.5583 GB, free: 3.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.1759, allocations: 29.7 kB / 0.5583 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1759, allocations: 0 / 0.5583 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1759, allocations: 0 / 0.5583 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.737e-05/0.1759, allocations: 4 kB / 0.5583 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1759, allocations: 0 / 0.5583 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.176, allocations: 0 / 0.5583 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.176, allocations: 3.938 kB / 0.5583 GB, free: 3.793 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.0001182/0.1761, allocations: 141.7 kB / 0.5585 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.1761, allocations: 4.031 kB / 0.5585 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.1761, allocations: 11.11 kB / 0.5585 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1761, allocations: 0 / 0.5585 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1761, allocations: 0 / 0.5585 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1761, allocations: 3.984 kB / 0.5585 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.1764, allocations: 296.3 kB / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1764, allocations: 0 / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.1764, allocations: 0 / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.1764, allocations: 0 / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.1765, allocations: 8.031 kB / 0.5588 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.1765, allocations: 3.984 kB / 0.5588 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1765, allocations: 0 / 0.5588 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.1766, allocations: 169.1 kB / 0.559 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.1767, allocations: 84.98 kB / 0.559 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.1767, allocations: 7.984 kB / 0.559 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.082e-05/0.1767, allocations: 4 kB / 0.5591 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.293e-05/0.1767, allocations: 4.031 kB / 0.5591 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.1768, allocations: 0 / 0.5591 GB, free: 2.957 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.397e-05/0.1768, allocations: 83.22 kB / 0.5591 GB, free: 2.875 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1768, allocations: 4 kB / 0.5591 GB, free: 2.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.1773, allocations: 131.5 kB / 0.5593 GB, free: 2.742 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.001276/0.1786, allocations: 0.914 MB / 0.5602 GB, free: 1.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.1787, allocations: 63.39 kB / 0.5602 GB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1787, allocations: 0 / 0.5602 GB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.682e-05/0.1788, allocations: 59.41 kB / 0.5603 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.179, allocations: 4 kB / 0.5603 GB, free: 1.652 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.1802, allocations: 1.199 MB / 0.5614 GB, free: 376 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.1806, allocations: 0.6768 MB / 0.5621 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.263e-05/0.1806, allocations: 0 / 0.5621 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.1806, allocations: 11.44 kB / 0.5621 GB, free: 15.65 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1806, allocations: 0 / 0.5621 GB, free: 15.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.2025, allocations: 4.565 MB / 0.5666 GB, free: 11.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.331/8.534, allocations: 4.062 kB / 0.5666 GB, free: 11.19 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.594336628972087]