Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.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: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 106.3 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2311/0.2311, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 83.52 kB / 416.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1529, allocations: 62.45 MB / 479.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001815/0.1548, allocations: 0.559 MB / 479.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.1584, allocations: 2.447 MB / 482.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.34e-05/0.1584, allocations: 0 / 482.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.112e-05/0.1585, allocations: 0 / 482.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-06/0.1585, allocations: 0 / 482.3 MB, free: 2.703 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.16, allocations: 474.2 kB / 482.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.682e-05/0.16, allocations: 4 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.1601, allocations: 3.984 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.1601, allocations: 0 / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.632e-05/0.1601, allocations: 11.92 kB / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.1602, allocations: 0 / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.1613, allocations: 0.7292 MB / 483.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.857e-06/0.1614, allocations: 0 / 483.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.609e-05/0.1614, allocations: 7.984 kB / 483.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000676/0.1621, allocations: 471.3 kB / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1621, allocations: 0 / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1621, allocations: 0 / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1621, allocations: 0 / 484 MB, free: 1.023 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.0004748/0.1626, allocations: 429.3 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.1626, allocations: 8.875 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.1627, allocations: 0.9375 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.1628, allocations: 172.3 kB / 484.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1628, allocations: 384 / 484.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.1628, allocations: 4.375 kB / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.163, allocations: 37.95 kB / 484.6 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.163, allocations: 3.938 kB / 484.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.163, allocations: 0 / 484.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.163, allocations: 0 / 484.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.08e-05/0.163, allocations: 4 kB / 484.6 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/0.1632, allocations: 145.7 kB / 484.8 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.372e-05/0.1632, allocations: 18.61 kB / 484.8 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.825e-05/0.1632, allocations: 16.8 kB / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.739e-06/0.1633, allocations: 0 / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.661e-05/0.1633, allocations: 64.2 kB / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1633, allocations: 0 / 484.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001774/0.1635, allocations: 63.45 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.1636, allocations: 81.11 kB / 485 MB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.313e-05/0.1636, allocations: 89.86 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.1637, allocations: 29.83 kB / 485.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.1637, allocations: 84.14 kB / 485.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.1637, allocations: 0 / 485.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.1638, allocations: 13.72 kB / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1639, allocations: 310.8 kB / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.043e-05/0.1639, allocations: 0 / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1639, allocations: 3.938 kB / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.057e-05/0.164, allocations: 64.25 kB / 485.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.164, allocations: 4.062 kB / 485.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.274e-05/0.164, allocations: 63.41 kB / 485.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.1641, allocations: 36.3 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1641, allocations: 0 / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.1641, allocations: 4 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.098e-06/0.1641, allocations: 3.984 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1641, allocations: 0 / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.1642, allocations: 0 / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.1642, allocations: 0 / 485.7 MB, free: 15.04 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 9.496e-05/0.1643, allocations: 139.6 kB / 485.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.1643, allocations: 7.875 kB / 485.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.227e-06/0.1643, allocations: 7.062 kB / 485.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1643, allocations: 0 / 485.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1643, allocations: 0 / 485.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1643, allocations: 0 / 485.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.859e-05/0.1644, allocations: 153.7 kB / 486 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1644, allocations: 0 / 486 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1644, allocations: 0 / 486 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1644, allocations: 3.938 kB / 486 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.1645, allocations: 8 kB / 486 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.1645, allocations: 0 / 486 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1645, allocations: 7.938 kB / 486 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.753e-05/0.1646, allocations: 90.73 kB / 486.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.1646, allocations: 77.11 kB / 486.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1647, allocations: 7.938 kB / 486.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-06/0.1647, allocations: 0 / 486.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.871e-05/0.1647, allocations: 3.984 kB / 486.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1647, allocations: 4.031 kB / 486.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.1648, allocations: 75.28 kB / 486.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1648, allocations: 3.938 kB / 486.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004121/0.1652, allocations: 163.9 kB / 486.4 MB, free: 14.19 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0007957/0.166, allocations: 349.2 kB / 486.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.72e-05/0.1661, allocations: 55.41 kB / 486.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1662, allocations: 0 / 486.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.259e-05/0.1662, allocations: 55.41 kB / 486.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.1663, allocations: 0 / 486.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001811/0.1665, allocations: 86.75 kB / 487 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.1668, allocations: 0.6692 MB / 487.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.1668, allocations: 8.125 kB / 487.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.927e-06/0.1668, allocations: 7.438 kB / 487.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1668, allocations: 0 / 487.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Templates: time 0.007154/0.174, allocations: 3.584 MB / 491.2 MB, free: 9.305 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches