Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008504/0.0008507, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001008, allocations: 184.7 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4519/0.4519, allocations: 43.57 MB / 315 MB, free: 8.805 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005946/0.0005946, allocations: 16 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.166, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0007384/0.1668, allocations: 240.4 kB / 443.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003128/0.1699, allocations: 2.106 MB / 445.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.51e-05/0.17, allocations: 7.938 kB / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.17, allocations: 0 / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.55e-06/0.17, allocations: 0 / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.1713, allocations: 419.1 kB / 446.2 MB, free: 9.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.838e-05/0.1713, allocations: 3.984 kB / 446.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.73e-05/0.1714, allocations: 0 / 446.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.971e-05/0.1714, allocations: 8 kB / 446.2 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.704e-05/0.1714, allocations: 3.938 kB / 446.2 MB, free: 9.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.887e-06/0.1715, allocations: 0 / 446.2 MB, free: 9.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001039/0.1725, allocations: 0.6394 MB / 446.9 MB, free: 9.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.1725, allocations: 4 kB / 446.9 MB, free: 9.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.1726, allocations: 25.7 kB / 446.9 MB, free: 9.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005676/0.1732, allocations: 391.1 kB / 447.3 MB, free: 8.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1732, allocations: 4 kB / 447.3 MB, free: 8.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1732, allocations: 0 / 447.3 MB, free: 8.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1732, allocations: 0 / 447.3 MB, free: 8.82 MB / 382.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.000475/0.1737, allocations: 413.5 kB / 447.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.1737, allocations: 8.031 kB / 447.7 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.1738, allocations: 0.9375 kB / 447.7 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1739, allocations: 164.4 kB / 447.8 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.1739, allocations: 4.359 kB / 447.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.1739, allocations: 4.375 kB / 447.9 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.174, allocations: 30.02 kB / 447.9 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.174, allocations: 0 / 447.9 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1741, allocations: 4 kB / 447.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1741, allocations: 0 / 447.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.539e-05/0.1741, allocations: 7.938 kB / 447.9 MB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000156/0.1743, allocations: 149.7 kB / 448 MB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.627e-05/0.1743, allocations: 22.55 kB / 448.1 MB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.433e-05/0.1743, allocations: 4.859 kB / 448.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.1744, allocations: 0 / 448.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.405e-05/0.1744, allocations: 64.2 kB / 448.1 MB, free: 7.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.713e-06/0.1744, allocations: 0 / 448.1 MB, free: 7.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002055/0.1746, allocations: 75.3 kB / 448.2 MB, free: 7.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.1747, allocations: 77.11 kB / 448.3 MB, free: 7.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/0.1748, allocations: 93.86 kB / 448.4 MB, free: 7.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.1748, allocations: 25.7 kB / 448.4 MB, free: 7.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.1748, allocations: 80.14 kB / 448.5 MB, free: 7.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.1749, allocations: 0 / 448.5 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.1749, allocations: 9.719 kB / 448.5 MB, free: 7.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.175, allocations: 322.9 kB / 448.8 MB, free: 7.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.175, allocations: 0 / 448.8 MB, free: 7.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.563e-06/0.1751, allocations: 4 kB / 448.8 MB, free: 7.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.917e-05/0.1751, allocations: 64.25 kB / 448.9 MB, free: 6.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1751, allocations: 0 / 448.9 MB, free: 6.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.694e-05/0.1752, allocations: 59.34 kB / 448.9 MB, free: 6.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.893e-05/0.1753, allocations: 37.64 kB / 449 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1753, allocations: 96 / 449 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1753, allocations: 4 kB / 449 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.1753, allocations: 0 / 449 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1753, allocations: 0 / 449 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.1753, allocations: 3.984 kB / 449 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.1753, allocations: 8 kB / 449 MB, free: 6.844 MB / 382.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 8.982e-05/0.1754, allocations: 135.5 kB / 449.1 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.1755, allocations: 3.938 kB / 449.1 MB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.465e-05/0.1755, allocations: 3.125 kB / 449.1 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1755, allocations: 8 kB / 449.1 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1755, allocations: 0 / 449.1 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1755, allocations: 0 / 449.1 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.1756, allocations: 145.7 kB / 449.3 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1756, allocations: 0 / 449.3 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1756, allocations: 0 / 449.3 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1756, allocations: 3.938 kB / 449.3 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1757, allocations: 4 kB / 449.3 MB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1757, allocations: 3.938 kB / 449.3 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1757, allocations: 0 / 449.3 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.1758, allocations: 98.77 kB / 449.4 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.1758, allocations: 77.11 kB / 449.4 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.1759, allocations: 3.938 kB / 449.5 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-06/0.1759, allocations: 0 / 449.5 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/0.1759, allocations: 0 / 449.5 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.1759, allocations: 4 kB / 449.5 MB, free: 6.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.89e-05/0.176, allocations: 79.28 kB / 449.5 MB, free: 6.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.176, allocations: 0 / 449.5 MB, free: 6.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003814/0.1763, allocations: 128 kB / 449.7 MB, free: 6.051 MB / 382.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.000818/0.1772, allocations: 306.5 kB / 450 MB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.1773, allocations: 63.39 kB / 450 MB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.1773, allocations: 0 / 450 MB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.603e-05/0.1773, allocations: 63.41 kB / 450.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.1775, allocations: 0 / 450.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002072/0.1777, allocations: 78.7 kB / 450.2 MB, free: 5.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.178, allocations: 0.6731 MB / 450.8 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.095e-06/0.178, allocations: 0 / 450.8 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.305e-05/0.178, allocations: 11.44 kB / 450.8 MB, free: 4.789 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.178, allocations: 0 / 450.8 MB, free: 4.789 MB / 382.1 MB Notification: Performance of Templates: time 0.007216/0.1853, allocations: 3.41 MB / 454.3 MB, free: 1.379 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches