Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 93.89 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 172.2 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 223.2 MB / 242.3 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.226/0.226, allocations: 44.24 MB / 337.7 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003625, allocations: 9.75 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.147, allocations: 61.93 MB / 472.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006924/0.1478, allocations: 230.9 kB / 472.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003461/0.1513, allocations: 2.345 MB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.202e-05/0.1513, allocations: 0 / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.1513, allocations: 0 / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.1513, allocations: 3.938 kB / 474.8 MB, free: 10.79 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001579/0.1529, allocations: 462.9 kB / 475.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.964e-05/0.153, allocations: 4 kB / 475.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.164e-05/0.153, allocations: 3.984 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.1531, allocations: 4 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.228e-05/0.1531, allocations: 0 / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.1531, allocations: 3.984 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.1544, allocations: 0.7213 MB / 476 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.869e-06/0.1544, allocations: 0 / 476 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.211e-05/0.1544, allocations: 25.7 kB / 476 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000673/0.1551, allocations: 459.3 kB / 476.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1551, allocations: 0 / 476.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1551, allocations: 0 / 476.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1551, allocations: 4 kB / 476.5 MB, free: 9.109 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.0004559/0.1556, allocations: 437.2 kB / 476.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.1557, allocations: 12.03 kB / 476.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.1557, allocations: 0.9375 kB / 476.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.1558, allocations: 160.4 kB / 477.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.1558, allocations: 384 / 477.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.1558, allocations: 4.312 kB / 477.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.1559, allocations: 34.02 kB / 477.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.156, allocations: 0 / 477.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.156, allocations: 4 kB / 477.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.156, allocations: 0 / 477.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.156, allocations: 4 kB / 477.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.1562, allocations: 145.7 kB / 477.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.891e-05/0.1562, allocations: 18.58 kB / 477.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.99e-05/0.1562, allocations: 12.89 kB / 477.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.1562, allocations: 0 / 477.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/0.1563, allocations: 64.2 kB / 477.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.1563, allocations: 0 / 477.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001732/0.1565, allocations: 63.39 kB / 477.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.1565, allocations: 77.11 kB / 477.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.213e-05/0.1566, allocations: 93.86 kB / 477.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.1566, allocations: 29.7 kB / 477.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.911e-05/0.1567, allocations: 80.14 kB / 477.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.1567, allocations: 0 / 477.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.1567, allocations: 9.719 kB / 477.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1568, allocations: 315 kB / 478 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.1569, allocations: 7.875 kB / 478 MB, free: 7.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-06/0.1569, allocations: 7.984 kB / 478 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.961e-05/0.1569, allocations: 60.27 kB / 478.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1569, allocations: 3.938 kB / 478.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.633e-05/0.157, allocations: 63.41 kB / 478.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.562e-05/0.1571, allocations: 37.64 kB / 478.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1571, allocations: 8.062 kB / 478.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1571, allocations: 4 kB / 478.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1571, allocations: 0 / 478.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1571, allocations: 0 / 478.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.1572, allocations: 0 / 478.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.1572, allocations: 4 kB / 478.2 MB, free: 7.113 MB / 350.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.577e-05/0.1573, allocations: 140 kB / 478.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.1573, allocations: 3.938 kB / 478.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.389e-05/0.1573, allocations: 11.08 kB / 478.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1573, allocations: 4 kB / 478.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.1573, allocations: 0 / 478.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.1573, allocations: 0 / 478.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.504e-05/0.1574, allocations: 153.6 kB / 478.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1574, allocations: 0 / 478.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.1574, allocations: 0 / 478.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1575, allocations: 7.938 kB / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1575, allocations: 0 / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1575, allocations: 0 / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1575, allocations: 0 / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.1576, allocations: 94.83 kB / 478.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.1576, allocations: 77.11 kB / 478.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.1577, allocations: 3.938 kB / 478.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.714e-06/0.1577, allocations: 0 / 478.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.1577, allocations: 4 kB / 478.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-06/0.1577, allocations: 3.984 kB / 478.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.042e-05/0.1577, allocations: 79.22 kB / 478.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1577, allocations: 0 / 478.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004249/0.1582, allocations: 155.9 kB / 478.9 MB, free: 6.281 MB / 350.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.0008312/0.159, allocations: 341.4 kB / 479.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.031e-05/0.1591, allocations: 63.41 kB / 479.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1591, allocations: 0 / 479.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.375e-05/0.1592, allocations: 59.45 kB / 479.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1593, allocations: 4 kB / 479.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001972/0.1595, allocations: 82.75 kB / 479.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.1598, allocations: 0.6692 MB / 480.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.1598, allocations: 0 / 480.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-06/0.1598, allocations: 7.438 kB / 480.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1598, allocations: 0 / 480.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of Templates: time 0.007627/0.1674, allocations: 3.504 MB / 483.7 MB, free: 1.488 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches