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.001458/0.001458, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001434/0.001434, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.482/1.482, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.232/0.232, allocations: 46.93 MB / 357.1 MB, free: 10.3 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.001881/0.001881, allocations: 67.89 kB / 0.4909 GB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.147, allocations: 65.98 MB / 0.5554 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001809/0.1488, allocations: 0.5048 MB / 0.5559 GB, free: 5.328 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.1521, allocations: 2.115 MB / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.1521, allocations: 0 / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.1521, allocations: 0 / 0.5579 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.613e-06/0.1521, allocations: 0 / 0.5579 GB, free: 3.191 MB / 414.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.001519/0.1536, allocations: 0.5098 MB / 0.5584 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.018e-05/0.1537, allocations: 7.984 kB / 0.5584 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.1537, allocations: 0 / 0.5584 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.644e-05/0.1537, allocations: 3.938 kB / 0.5584 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.473e-05/0.1537, allocations: 0 / 0.5584 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.84e-06/0.1537, allocations: 4 kB / 0.5584 GB, free: 2.668 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.155, allocations: 0.6629 MB / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.155, allocations: 0 / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.239e-05/0.155, allocations: 8 kB / 0.5591 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005905/0.1556, allocations: 391 kB / 0.5595 GB, free: 1.613 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1556, allocations: 0 / 0.5595 GB, free: 1.613 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1556, allocations: 0 / 0.5595 GB, free: 1.613 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1556, allocations: 0 / 0.5595 GB, free: 1.613 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.0005336/0.1561, allocations: 420.5 kB / 0.5599 GB, free: 1.148 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1562, allocations: 12.03 kB / 0.5599 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.475e-05/0.1562, allocations: 34.7 kB / 0.5599 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.1563, allocations: 4.922 kB / 0.5599 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.1564, allocations: 160.4 kB / 0.5601 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1564, allocations: 4.375 kB / 0.5601 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.1564, allocations: 384 / 0.5601 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.1565, allocations: 41.77 kB / 0.5601 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1565, allocations: 3.984 kB / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.1565, allocations: 4 kB / 0.5601 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1565, allocations: 0 / 0.5601 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.155e-05/0.1566, allocations: 4 kB / 0.5601 GB, free: 0.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002695/0.1568, allocations: 232.8 kB / 0.5603 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.726e-05/0.1569, allocations: 22.61 kB / 0.5604 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.398e-05/0.1569, allocations: 12.78 kB / 0.5604 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-06/0.1569, allocations: 4.062 kB / 0.5604 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.157, allocations: 64.27 kB / 0.5604 GB, free: 436 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.157, allocations: 0 / 0.5604 GB, free: 436 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002217/0.1572, allocations: 67.39 kB / 0.5605 GB, free: 356 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.1573, allocations: 81.11 kB / 0.5606 GB, free: 256 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.685e-05/0.1573, allocations: 89.86 kB / 0.5607 GB, free: 156 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1573, allocations: 25.7 kB / 0.5607 GB, free: 124 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.1574, allocations: 80.14 kB / 0.5608 GB, free: 40 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1574, allocations: 12.08 kB / 0.5608 GB, free: 28 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.1574, allocations: 9.719 kB / 0.5608 GB, free: 12 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1576, allocations: 314.8 kB / 0.5611 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.1576, allocations: 7.938 kB / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.358e-06/0.1576, allocations: 3.984 kB / 0.5611 GB, free: 15.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.122e-05/0.1577, allocations: 68.2 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1577, allocations: 3.938 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.461e-05/0.1578, allocations: 67.47 kB / 0.5612 GB, free: 15.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.738e-05/0.1578, allocations: 37.69 kB / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1578, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.1578, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.931e-05/0.1579, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.1579, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.1579, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1579, allocations: 0 / 0.5613 GB, free: 15.48 MB / 430.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.0001405/0.158, allocations: 153.6 kB / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.589e-05/0.1581, allocations: 0 / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.681e-05/0.1581, allocations: 7.156 kB / 0.5614 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1581, allocations: 4 kB / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1581, allocations: 3.984 kB / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1581, allocations: 0 / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.1584, allocations: 296.3 kB / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1584, allocations: 0 / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-06/0.1584, allocations: 8 kB / 0.5617 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.1584, allocations: 0 / 0.5617 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.1584, allocations: 3.938 kB / 0.5617 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1584, allocations: 4.031 kB / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1584, allocations: 0 / 0.5617 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.1586, allocations: 177.1 kB / 0.5619 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.1586, allocations: 77.11 kB / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.1586, allocations: 0 / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.907e-05/0.1587, allocations: 0 / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.377e-05/0.1587, allocations: 3.984 kB / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.1587, allocations: 4 kB / 0.562 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.423e-05/0.1588, allocations: 79.31 kB / 0.5621 GB, free: 14.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1588, allocations: 0 / 0.5621 GB, free: 14.56 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005214/0.1593, allocations: 135.5 kB / 0.5622 GB, free: 14.43 MB / 430.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.001158/0.1604, allocations: 0.9089 MB / 0.5631 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001456/0.1606, allocations: 67.39 kB / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1606, allocations: 0 / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.783e-05/0.1606, allocations: 55.41 kB / 0.5632 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.1608, allocations: 6.391 kB / 0.5632 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1621, allocations: 1.203 MB / 0.5644 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.1624, allocations: 0.6768 MB / 0.565 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.323e-05/0.1624, allocations: 0 / 0.565 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.896e-05/0.1624, allocations: 11.44 kB / 0.565 GB, free: 11.34 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.1624, allocations: 0 / 0.565 GB, free: 11.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.1917, allocations: 4.532 MB / 0.5695 GB, free: 6.887 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.28, allocations: 3.938 kB / 0.5695 GB, free: 6.883 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.350061414006632]