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.002227/0.002227, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001087, allocations: 87.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2875/0.2875, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.247e-05/2.245e-05, allocations: 4 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4327, allocations: 58.86 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1647/0.5974, allocations: 87.73 MB / 0.5516 GB, free: 11.57 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.5978, allocations: 63.97 kB / 0.5516 GB, free: 11.51 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.29/1.888, allocations: 71.58 MB / 0.6215 GB, free: 3.836 MB / 459.1 MB Notification: Performance of FrontEnd: time 1.914e-06/1.888, allocations: 0 / 0.6215 GB, free: 3.836 MB / 459.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/1.888, allocations: 4 kB / 0.6215 GB, free: 3.832 MB / 459.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.004896/1.893, allocations: 463.9 kB / 0.622 GB, free: 3.328 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/1.893, allocations: 8.031 kB / 0.622 GB, free: 3.32 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/1.893, allocations: 7.953 kB / 0.622 GB, free: 3.312 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/1.893, allocations: 159.1 kB / 0.6222 GB, free: 3.117 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/1.893, allocations: 3.938 kB / 0.6222 GB, free: 3.113 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/1.893, allocations: 0 / 0.6222 GB, free: 3.113 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.386e-05/1.893, allocations: 7.938 kB / 0.6222 GB, free: 3.105 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.922e-05/1.893, allocations: 33.69 kB / 0.6222 GB, free: 3.066 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/1.893, allocations: 3.984 kB / 0.6222 GB, free: 3.062 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/1.893, allocations: 4 kB / 0.6222 GB, free: 3.059 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/1.893, allocations: 0 / 0.6222 GB, free: 3.059 MB / 459.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/1.893, allocations: 126.2 kB / 0.6223 GB, free: 2.898 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.24e-05/1.893, allocations: 18.61 kB / 0.6223 GB, free: 2.871 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/1.894, allocations: 4.859 kB / 0.6224 GB, free: 2.863 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/1.894, allocations: 4 kB / 0.6224 GB, free: 2.859 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/1.894, allocations: 60.27 kB / 0.6224 GB, free: 2.785 MB / 459.1 MB Notification: Performance of pre-optimization done (n=1): time 1.502e-06/1.894, allocations: 0 / 0.6224 GB, free: 2.785 MB / 459.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002347/1.894, allocations: 41.69 kB / 0.6225 GB, free: 2.738 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/1.894, allocations: 77.11 kB / 0.6225 GB, free: 2.645 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.51e-05/1.894, allocations: 85 kB / 0.6226 GB, free: 2.555 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/1.894, allocations: 25.7 kB / 0.6226 GB, free: 2.523 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.857e-05/1.894, allocations: 154.6 kB / 0.6228 GB, free: 2.371 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/1.894, allocations: 4 kB / 0.6228 GB, free: 2.367 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/1.894, allocations: 0 / 0.6228 GB, free: 2.367 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/1.894, allocations: 310.8 kB / 0.6231 GB, free: 2.055 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.821e-05/1.894, allocations: 4 kB / 0.6231 GB, free: 2.051 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.575e-06/1.894, allocations: 0 / 0.6231 GB, free: 2.051 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.465e-05/1.894, allocations: 7.953 kB / 0.6231 GB, free: 2.043 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/1.894, allocations: 0 / 0.6231 GB, free: 2.043 MB / 459.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.12e-05/1.895, allocations: 33.78 kB / 0.6231 GB, free: 2.004 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.237e-05/1.895, allocations: 37.7 kB / 0.6232 GB, free: 1.961 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/1.895, allocations: 0 / 0.6232 GB, free: 1.961 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/1.895, allocations: 3.938 kB / 0.6232 GB, free: 1.957 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-06/1.895, allocations: 0 / 0.6232 GB, free: 1.957 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/1.895, allocations: 0 / 0.6232 GB, free: 1.957 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/1.895, allocations: 0 / 0.6232 GB, free: 1.957 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/1.895, allocations: 4 kB / 0.6232 GB, free: 1.953 MB / 459.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 () * 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 0.0001151/1.895, allocations: 134.6 kB / 0.6233 GB, free: 1.809 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/1.895, allocations: 3.906 kB / 0.6233 GB, free: 1.805 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.987e-05/1.895, allocations: 11.69 kB / 0.6233 GB, free: 1.793 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/1.895, allocations: 7.938 kB / 0.6233 GB, free: 1.785 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.895, allocations: 0 / 0.6233 GB, free: 1.785 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/1.895, allocations: 0 / 0.6233 GB, free: 1.785 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/1.895, allocations: 122.2 kB / 0.6234 GB, free: 1.629 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.895, allocations: 0 / 0.6234 GB, free: 1.629 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/1.895, allocations: 0 / 0.6234 GB, free: 1.629 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/1.895, allocations: 7.938 kB / 0.6234 GB, free: 1.621 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/1.895, allocations: 4 kB / 0.6234 GB, free: 1.617 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.895, allocations: 0 / 0.6234 GB, free: 1.617 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.895, allocations: 3.984 kB / 0.6234 GB, free: 1.613 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/1.895, allocations: 65.12 kB / 0.6235 GB, free: 1.531 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/1.895, allocations: 81.09 kB / 0.6236 GB, free: 1.434 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/1.895, allocations: 7.953 kB / 0.6236 GB, free: 1.426 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/1.895, allocations: 3.938 kB / 0.6236 GB, free: 1.422 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.81e-05/1.895, allocations: 0 / 0.6236 GB, free: 1.422 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/1.895, allocations: 0 / 0.6236 GB, free: 1.422 MB / 459.1 MB Notification: Performance of sorting global known variables: time 5.466e-05/1.895, allocations: 83.31 kB / 0.6237 GB, free: 1.34 MB / 459.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.895, allocations: 0 / 0.6237 GB, free: 1.34 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01013/1.906, allocations: 1.527 MB / 0.6252 GB, free: 15.81 MB / 475.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) * 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.01656/1.922, allocations: 2.021 MB / 0.6271 GB, free: 13.78 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.0001447/1.922, allocations: 67.33 kB / 0.6272 GB, free: 13.7 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/1.922, allocations: 0 / 0.6272 GB, free: 13.7 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 4.433e-05/1.922, allocations: 55.41 kB / 0.6273 GB, free: 13.63 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/1.923, allocations: 3.938 kB / 0.6273 GB, free: 13.63 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001973/1.923, allocations: 77.7 kB / 0.6273 GB, free: 13.52 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/1.923, allocations: 0.6768 MB / 0.628 GB, free: 12.82 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.058e-05/1.923, allocations: 7.438 kB / 0.628 GB, free: 12.81 MB / 475.1 MB Notification: Performance of SimCode: time 7.41e-07/1.923, allocations: 0 / 0.628 GB, free: 12.81 MB / 475.1 MB Notification: Performance of Templates: time 0.5213/2.445, allocations: 86.1 MB / 0.7121 GB, free: 92.77 MB / 475.1 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