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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001553/0.001558, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2392/0.2392, allocations: 46.11 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 71.7 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1513, allocations: 62.45 MB / 479.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002544/0.1539, allocations: 0.5566 MB / 479.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003657/0.1576, allocations: 2.167 MB / 482.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.811e-05/0.1576, allocations: 4 kB / 482.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.1577, allocations: 0 / 482.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1577, allocations: 0 / 482.1 MB, free: 2.906 MB / 350.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.001715/0.1594, allocations: 419.1 kB / 482.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.069e-05/0.1595, allocations: 4 kB / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.635e-05/0.1595, allocations: 0 / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.018e-05/0.1596, allocations: 0 / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.219e-05/0.1596, allocations: 0 / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.784e-06/0.1596, allocations: 0 / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.1611, allocations: 0.655 MB / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.141e-05/0.1611, allocations: 0 / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.309e-05/0.1611, allocations: 11.94 kB / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1622, allocations: 391.2 kB / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-05/0.1622, allocations: 4 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.1622, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.1623, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.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.0006539/0.1629, allocations: 417.5 kB / 484 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.163, allocations: 12.88 kB / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.1631, allocations: 42.69 kB / 484 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.1631, allocations: 8.875 kB / 484 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.1632, allocations: 164.4 kB / 484.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.1632, allocations: 384 / 484.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.1633, allocations: 384 / 484.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.1634, allocations: 33.83 kB / 484.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1634, allocations: 0 / 484.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1634, allocations: 4 kB / 484.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1634, allocations: 0 / 484.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.473e-05/0.1635, allocations: 4 kB / 484.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003011/0.1638, allocations: 236.8 kB / 484.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.745e-05/0.1638, allocations: 22.61 kB / 484.5 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.023e-05/0.1639, allocations: 12.91 kB / 484.5 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.1639, allocations: 0 / 484.5 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.195e-05/0.164, allocations: 64.27 kB / 484.6 MB, free: 260 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.164, allocations: 0 / 484.6 MB, free: 260 kB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002434/0.1642, allocations: 75.33 kB / 484.7 MB, free: 172 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.1643, allocations: 77.11 kB / 484.7 MB, free: 76 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.442e-05/0.1644, allocations: 89.86 kB / 484.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1644, allocations: 29.64 kB / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.364e-05/0.1644, allocations: 80.14 kB / 484.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.189e-05/0.1645, allocations: 7.906 kB / 484.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.1645, allocations: 17.84 kB / 484.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1647, allocations: 310.8 kB / 485.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.774e-05/0.1647, allocations: 4 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.218e-05/0.1647, allocations: 3.984 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.732e-05/0.1648, allocations: 68.27 kB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1648, allocations: 3.938 kB / 485.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.32e-05/0.1649, allocations: 67.34 kB / 485.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.13e-05/0.165, allocations: 33.78 kB / 485.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.165, allocations: 4 kB / 485.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.165, allocations: 4 kB / 485.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.496e-05/0.165, allocations: 3.984 kB / 485.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.165, allocations: 0 / 485.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.026e-05/0.1651, allocations: 0 / 485.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1651, allocations: 0 / 485.4 MB, free: 15.29 MB / 366.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.0001144/0.1652, allocations: 139.5 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.1652, allocations: 0 / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.776e-05/0.1653, allocations: 3.125 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1653, allocations: 4 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.1653, allocations: 4 kB / 485.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1653, allocations: 0 / 485.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.1656, allocations: 312.1 kB / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1656, allocations: 0 / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-06/0.1656, allocations: 0 / 485.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1657, allocations: 4 kB / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.1657, allocations: 0 / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.1657, allocations: 0 / 485.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.1657, allocations: 8.031 kB / 485.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.1658, allocations: 169.1 kB / 486.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.1659, allocations: 81.11 kB / 486.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.1659, allocations: 0 / 486.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.209e-05/0.166, allocations: 0 / 486.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.166, allocations: 7.984 kB / 486.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.166, allocations: 4 kB / 486.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.1661, allocations: 83.25 kB / 486.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1661, allocations: 3.938 kB / 486.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006371/0.1667, allocations: 127.9 kB / 486.4 MB, free: 14.25 MB / 366.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.001346/0.1681, allocations: 0.908 MB / 487.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.1682, allocations: 59.41 kB / 487.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1682, allocations: 0 / 487.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.547e-05/0.1683, allocations: 67.33 kB / 487.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.1685, allocations: 6.5 kB / 487.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.1697, allocations: 1.197 MB / 488.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.17, allocations: 0.6731 MB / 489.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.784e-05/0.17, allocations: 0 / 489.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.1701, allocations: 11.44 kB / 489.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1701, allocations: 0 / 489.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.1885, allocations: 4.389 MB / 493.7 MB, free: 6.867 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/0.1888, allocations: 238.6 kB / 493.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.152, allocations: 0 / 493.9 MB, free: 6.613 MB / 366.1 MB (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) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches