Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.001719, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001995/0.001995, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2579/0.2579, allocations: 46.9 MB / 357.4 MB, free: 10.49 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 79.88 kB / 0.4912 GB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1549, allocations: 66 MB / 0.5557 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00217/0.1571, allocations: 498.6 kB / 0.5562 GB, free: 5.727 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003767/0.1608, allocations: 2.123 MB / 0.5582 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.892e-05/0.1609, allocations: 4 kB / 0.5582 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.497e-05/0.1609, allocations: 0 / 0.5582 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.494e-06/0.1609, allocations: 0 / 0.5582 GB, free: 3.578 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001829/0.1627, allocations: 0.4967 MB / 0.5587 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.497e-05/0.1628, allocations: 4 kB / 0.5587 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.154e-05/0.1628, allocations: 0 / 0.5587 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.523e-05/0.1629, allocations: 4 kB / 0.5587 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.636e-05/0.1629, allocations: 3.938 kB / 0.5587 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.1629, allocations: 0 / 0.5587 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.1643, allocations: 0.6629 MB / 0.5594 GB, free: 2.406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1643, allocations: 7.984 kB / 0.5594 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.1643, allocations: 4 kB / 0.5594 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009322/0.1652, allocations: 391 kB / 0.5598 GB, free: 2.012 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1652, allocations: 0 / 0.5598 GB, free: 2.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1652, allocations: 0 / 0.5598 GB, free: 2.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1652, allocations: 0 / 0.5598 GB, free: 2.012 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.0005702/0.1658, allocations: 420.5 kB / 0.5602 GB, free: 1.547 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1659, allocations: 12.03 kB / 0.5602 GB, free: 1.535 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.364e-05/0.1659, allocations: 34.7 kB / 0.5602 GB, free: 1.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.166, allocations: 4.922 kB / 0.5602 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.1661, allocations: 172.4 kB / 0.5604 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1661, allocations: 4.375 kB / 0.5604 GB, free: 1.277 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.1661, allocations: 384 / 0.5604 GB, free: 1.277 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.1663, allocations: 33.83 kB / 0.5604 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1663, allocations: 0 / 0.5604 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.1663, allocations: 0 / 0.5604 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1663, allocations: 4 kB / 0.5604 GB, free: 1.234 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.656e-05/0.1663, allocations: 11.92 kB / 0.5604 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003123/0.1666, allocations: 228.9 kB / 0.5607 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.357e-05/0.1667, allocations: 26.5 kB / 0.5607 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.742e-05/0.1667, allocations: 12.92 kB / 0.5607 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-06/0.1667, allocations: 0 / 0.5607 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.801e-05/0.1668, allocations: 64.25 kB / 0.5608 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.1668, allocations: 3.938 kB / 0.5608 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002275/0.167, allocations: 71.39 kB / 0.5608 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/0.1671, allocations: 77.11 kB / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.721e-05/0.1671, allocations: 89.86 kB / 0.561 GB, free: 0.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.1672, allocations: 25.7 kB / 0.561 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.938e-05/0.1672, allocations: 88.08 kB / 0.5611 GB, free: 432 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.1672, allocations: 3.953 kB / 0.5611 GB, free: 428 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.1673, allocations: 17.84 kB / 0.5611 GB, free: 404 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1675, allocations: 314.8 kB / 0.5614 GB, free: 80 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.429e-05/0.1675, allocations: 3.984 kB / 0.5614 GB, free: 76 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-06/0.1675, allocations: 4 kB / 0.5614 GB, free: 72 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.651e-05/0.1676, allocations: 68.2 kB / 0.5615 GB, free: 15.99 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.1676, allocations: 3.938 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.898e-05/0.1677, allocations: 59.41 kB / 0.5616 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.1677, allocations: 41.78 kB / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1677, allocations: 0 / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1677, allocations: 0 / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.039e-05/0.1678, allocations: 0 / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1678, allocations: 0 / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.1678, allocations: 0 / 0.5616 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1678, allocations: 4 kB / 0.5616 GB, free: 15.86 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.0001197/0.1679, allocations: 139.5 kB / 0.5617 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.1679, allocations: 4 kB / 0.5617 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.788e-05/0.1679, allocations: 7.125 kB / 0.5617 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.168, allocations: 3.984 kB / 0.5617 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.168, allocations: 0 / 0.5617 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.168, allocations: 0 / 0.5617 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.1683, allocations: 300.2 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.1683, allocations: 4 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.366e-06/0.1683, allocations: 0 / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.1683, allocations: 0 / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.1683, allocations: 0 / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1683, allocations: 3.938 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1683, allocations: 4.031 kB / 0.562 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.1685, allocations: 181.1 kB / 0.5622 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.1685, allocations: 77.11 kB / 0.5623 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.1685, allocations: 0 / 0.5623 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.955e-05/0.1686, allocations: 3.984 kB / 0.5623 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.1686, allocations: 4 kB / 0.5623 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1686, allocations: 0 / 0.5623 GB, free: 15.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.795e-05/0.1687, allocations: 79.31 kB / 0.5624 GB, free: 14.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1687, allocations: 0 / 0.5624 GB, free: 14.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005304/0.1692, allocations: 139.5 kB / 0.5625 GB, free: 14.82 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.001221/0.1704, allocations: 0.9105 MB / 0.5634 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.1706, allocations: 71.33 kB / 0.5635 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1706, allocations: 0 / 0.5635 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.698e-05/0.1706, allocations: 59.41 kB / 0.5635 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.1708, allocations: 0 / 0.5635 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.1719, allocations: 1.199 MB / 0.5647 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1723, allocations: 0.6807 MB / 0.5654 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.065e-05/0.1723, allocations: 0 / 0.5654 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.1723, allocations: 11.44 kB / 0.5654 GB, free: 11.72 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1723, allocations: 0 / 0.5654 GB, free: 11.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.2019, allocations: 4.533 MB / 0.5698 GB, free: 7.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/8.566, allocations: 0 / 0.5698 GB, free: 7.27 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.76406777696684]