Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009609/0.000961, allocations: 181.3 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 223.6 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007318/0.0007317, allocations: 90.36 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3194/0.3194, allocations: 43.56 MB / 363.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 16 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.3848, allocations: 88.53 MB / 0.5664 GB, free: 13.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.385, allocations: 63.97 kB / 0.5664 GB, free: 13.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7514/1.136, allocations: 59.76 MB / 0.6248 GB, free: 2.008 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.136, allocations: 0 / 0.6248 GB, free: 2.008 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/1.136, allocations: 4 kB / 0.6248 GB, free: 2.004 MB / 442.7 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.003864/1.14, allocations: 468.9 kB / 0.6252 GB, free: 1.488 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.14, allocations: 12.03 kB / 0.6253 GB, free: 1.477 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/1.14, allocations: 0.9375 kB / 0.6253 GB, free: 1.477 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.757e-05/1.141, allocations: 160.4 kB / 0.6254 GB, free: 1.281 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/1.141, allocations: 384 / 0.6254 GB, free: 1.281 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/1.141, allocations: 384 / 0.6254 GB, free: 1.281 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.938e-05/1.141, allocations: 34.25 kB / 0.6254 GB, free: 1.242 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.141, allocations: 4.172 kB / 0.6255 GB, free: 1.238 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/1.141, allocations: 7.938 kB / 0.6255 GB, free: 1.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.141, allocations: 0 / 0.6255 GB, free: 1.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/1.141, allocations: 4 kB / 0.6255 GB, free: 1.227 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/1.141, allocations: 153.4 kB / 0.6256 GB, free: 1.031 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.83e-05/1.141, allocations: 18.52 kB / 0.6256 GB, free: 1.004 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.736e-05/1.141, allocations: 8.953 kB / 0.6256 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-06/1.141, allocations: 0 / 0.6256 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/1.141, allocations: 65.56 kB / 0.6257 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/1.141, allocations: 0 / 0.6257 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002003/1.141, allocations: 73.31 kB / 0.6258 GB, free: 0.832 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/1.141, allocations: 77.11 kB / 0.6258 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.821e-05/1.141, allocations: 89.86 kB / 0.6259 GB, free: 0.6406 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/1.141, allocations: 29.7 kB / 0.626 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/1.141, allocations: 80.14 kB / 0.626 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/1.142, allocations: 3.984 kB / 0.626 GB, free: 0.5195 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/1.142, allocations: 4.125 kB / 0.626 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/1.142, allocations: 310.8 kB / 0.6263 GB, free: 208 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.353e-06/1.142, allocations: 0 / 0.6263 GB, free: 208 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.354e-06/1.142, allocations: 4 kB / 0.6263 GB, free: 204 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.715e-05/1.142, allocations: 60.27 kB / 0.6264 GB, free: 128 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/1.142, allocations: 0 / 0.6264 GB, free: 128 kB / 442.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.663e-05/1.142, allocations: 70.05 kB / 0.6265 GB, free: 48 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/1.142, allocations: 33.7 kB / 0.6265 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/1.142, allocations: 4.094 kB / 0.6265 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/1.142, allocations: 3.938 kB / 0.6265 GB, free: 0 / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/1.142, allocations: 0 / 0.6265 GB, free: 0 / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/1.142, allocations: 0 / 0.6265 GB, free: 0 / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/1.142, allocations: 0 / 0.6265 GB, free: 0 / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/1.142, allocations: 0 / 0.6265 GB, free: 0 / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.622e-05/1.142, allocations: 143.6 kB / 0.6266 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-06/1.142, allocations: 0 / 0.6266 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.762e-05/1.142, allocations: 11 kB / 0.6267 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/1.142, allocations: 4 kB / 0.6267 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.142, allocations: 4 kB / 0.6267 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/1.142, allocations: 0 / 0.6267 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.862e-05/1.142, allocations: 141.7 kB / 0.6268 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/1.142, allocations: 0 / 0.6268 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/1.142, allocations: 0 / 0.6268 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/1.142, allocations: 0 / 0.6268 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/1.142, allocations: 11.88 kB / 0.6268 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/1.142, allocations: 3.984 kB / 0.6268 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.142, allocations: 0 / 0.6268 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.648e-05/1.142, allocations: 94.78 kB / 0.6269 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/1.142, allocations: 77.11 kB / 0.627 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/1.142, allocations: 7.922 kB / 0.627 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.074e-05/1.142, allocations: 0 / 0.627 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.047e-05/1.143, allocations: 0 / 0.627 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.443e-06/1.143, allocations: 4 kB / 0.627 GB, free: 15.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.457e-05/1.143, allocations: 75.28 kB / 0.6271 GB, free: 15.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.143, allocations: 0 / 0.6271 GB, free: 15.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005865/1.148, allocations: 1.532 MB / 0.6286 GB, free: 13.8 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01072/1.159, allocations: 2.027 MB / 0.6305 GB, free: 11.77 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001196/1.159, allocations: 63.39 kB / 0.6306 GB, free: 11.69 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.159, allocations: 4.062 kB / 0.6306 GB, free: 11.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.902e-05/1.159, allocations: 55.41 kB / 0.6306 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/1.16, allocations: 5.578 kB / 0.6307 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/1.16, allocations: 107.9 kB / 0.6308 GB, free: 11.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000186/1.16, allocations: 0.6731 MB / 0.6314 GB, free: 10.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.568e-06/1.16, allocations: 7.438 kB / 0.6314 GB, free: 10.77 MB / 458.7 MB Notification: Performance of SimCode: time 3.01e-07/1.16, allocations: 0 / 0.6314 GB, free: 10.77 MB / 458.7 MB Notification: Performance of Templates: time 0.469/1.629, allocations: 74.09 MB / 0.7038 GB, free: 95.92 MB / 490.8 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches