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.001275/0.001275, allocations: 177.9 kB / 16.41 MB, free: 5.707 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.353/1.353, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0008043/0.0008041, allocations: 90.3 kB / 270.9 MB, free: 8.355 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.3459/0.3459, allocations: 43.55 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 8 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1363, allocations: 58.85 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006505/0.137, allocations: 236.3 kB / 490.5 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.14, allocations: 2.211 MB / 492.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.426e-05/0.14, allocations: 0 / 492.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.13e-05/0.14, allocations: 0 / 492.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.705e-06/0.14, allocations: 0 / 492.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.1414, allocations: 474.9 kB / 493.1 MB, free: 8.289 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.883e-05/0.1414, allocations: 0 / 493.1 MB, free: 8.289 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.455e-05/0.1415, allocations: 4 kB / 493.1 MB, free: 8.285 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.825e-05/0.1415, allocations: 0 / 493.1 MB, free: 8.285 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.531e-05/0.1415, allocations: 0 / 493.1 MB, free: 8.285 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-06/0.1415, allocations: 0 / 493.1 MB, free: 8.285 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.1426, allocations: 0.7018 MB / 493.8 MB, free: 7.582 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.304e-06/0.1426, allocations: 3.984 kB / 493.9 MB, free: 7.578 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.1427, allocations: 25.7 kB / 493.9 MB, free: 7.547 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004068/0.1431, allocations: 299.8 kB / 494.2 MB, free: 7.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1431, allocations: 0 / 494.2 MB, free: 7.254 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1431, allocations: 3.938 kB / 494.2 MB, free: 7.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1431, allocations: 0 / 494.2 MB, free: 7.25 MB / 378.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.0004266/0.1435, allocations: 429 kB / 494.6 MB, free: 6.777 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1436, allocations: 12.02 kB / 494.6 MB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.1436, allocations: 3.953 kB / 494.6 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.701e-05/0.1437, allocations: 163.1 kB / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1437, allocations: 0 / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.1437, allocations: 3.984 kB / 494.8 MB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.182e-05/0.1438, allocations: 33.7 kB / 494.8 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1439, allocations: 0 / 494.8 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-06/0.1439, allocations: 3.938 kB / 494.8 MB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1439, allocations: 0 / 494.8 MB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.72e-05/0.1439, allocations: 3.953 kB / 494.8 MB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.144, allocations: 149.6 kB / 495 MB, free: 6.316 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.086e-05/0.1441, allocations: 22.59 kB / 495 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.449e-05/0.1441, allocations: 8.859 kB / 495 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.1441, allocations: 0 / 495 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.1442, allocations: 60.33 kB / 495 MB, free: 6.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1442, allocations: 0 / 495 MB, free: 6.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.1443, allocations: 67.34 kB / 495.1 MB, free: 6.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.1444, allocations: 81.09 kB / 495.2 MB, free: 6.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.442e-05/0.1444, allocations: 89.86 kB / 495.3 MB, free: 5.926 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1445, allocations: 25.83 kB / 495.3 MB, free: 5.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.1445, allocations: 84.14 kB / 495.4 MB, free: 5.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.1445, allocations: 0 / 495.4 MB, free: 5.809 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-06/0.1445, allocations: 0 / 495.4 MB, free: 5.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1447, allocations: 318.8 kB / 495.7 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-06/0.1447, allocations: 3.938 kB / 495.7 MB, free: 5.484 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.1447, allocations: 0 / 495.7 MB, free: 5.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.426e-05/0.1448, allocations: 29.7 kB / 495.7 MB, free: 5.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1448, allocations: 0 / 495.7 MB, free: 5.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.669e-05/0.1448, allocations: 71.39 kB / 495.8 MB, free: 5.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.1449, allocations: 33.7 kB / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1449, allocations: 0 / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1449, allocations: 0 / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.1449, allocations: 0 / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.1449, allocations: 0 / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.46e-05/0.145, allocations: 0 / 495.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.145, allocations: 4 kB / 495.8 MB, free: 5.324 MB / 378.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 8.84e-05/0.1451, allocations: 135.5 kB / 496 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.1451, allocations: 8.016 kB / 496 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.989e-06/0.1451, allocations: 7.125 kB / 496 MB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1451, allocations: 3.938 kB / 496 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1451, allocations: 4 kB / 496 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1451, allocations: 3.984 kB / 496 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.529e-05/0.1452, allocations: 153.6 kB / 496.1 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1452, allocations: 0 / 496.1 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1452, allocations: 0 / 496.1 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1453, allocations: 7.984 kB / 496.2 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.1453, allocations: 0 / 496.2 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.1453, allocations: 0 / 496.2 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1453, allocations: 4 kB / 496.2 MB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001096/0.1454, allocations: 94.73 kB / 496.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-05/0.1454, allocations: 81.09 kB / 496.3 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.1455, allocations: 0 / 496.3 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.1455, allocations: 0 / 496.3 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.1455, allocations: 4 kB / 496.3 MB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.1455, allocations: 0 / 496.3 MB, free: 4.719 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.719e-05/0.1455, allocations: 79.31 kB / 496.4 MB, free: 4.641 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1455, allocations: 0 / 496.4 MB, free: 4.641 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004479/0.146, allocations: 155.9 kB / 496.6 MB, free: 4.488 MB / 378.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.0008107/0.1468, allocations: 334.1 kB / 496.9 MB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.1469, allocations: 63.41 kB / 497 MB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1469, allocations: 4 kB / 497 MB, free: 4.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.598e-05/0.147, allocations: 59.33 kB / 497 MB, free: 4.012 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.1471, allocations: 11.56 kB / 497 MB, free: 4.004 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001953/0.1473, allocations: 96.47 kB / 497.1 MB, free: 3.879 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.1476, allocations: 0.6731 MB / 497.8 MB, free: 3.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.436e-05/0.1476, allocations: 11.42 kB / 497.8 MB, free: 3.168 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.1476, allocations: 3.938 kB / 497.8 MB, free: 3.164 MB / 378.7 MB Notification: Performance of Templates: time 0.1924/0.3401, allocations: 3.273 MB / 0.4893 GB, free: 43.14 MB / 378.7 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/jenkins/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