Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007166/0.0007166, allocations: 100.2 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3455/0.3455, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002938, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.32, allocations: 62.97 MB / 0.5159 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006004/0.3206, allocations: 234.9 kB / 0.5161 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002489/0.3231, allocations: 2.232 MB / 0.5183 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.98e-05/0.3232, allocations: 4 kB / 0.5183 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.3232, allocations: 0 / 0.5183 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.745e-06/0.3232, allocations: 0 / 0.5183 GB, free: 35.48 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.00114/0.3243, allocations: 473.4 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.751e-05/0.3244, allocations: 2.969 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.692e-05/0.3244, allocations: 4 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/0.3244, allocations: 0 / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.983e-05/0.3245, allocations: 2.938 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-06/0.3245, allocations: 4 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009385/0.3254, allocations: 0.7061 MB / 0.5194 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.3254, allocations: 4 kB / 0.5194 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.3255, allocations: 28.67 kB / 0.5195 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.3258, allocations: 301.9 kB / 0.5198 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3258, allocations: 0 / 0.5198 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.3259, allocations: 0 / 0.5198 GB, free: 34.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3259, allocations: 0 / 0.5198 GB, free: 34.98 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.0003415/0.3262, allocations: 434 kB / 0.5202 GB, free: 34.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3263, allocations: 12.62 kB / 0.5202 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.748e-05/0.3263, allocations: 0.9375 kB / 0.5202 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.617e-05/0.3264, allocations: 167.6 kB / 0.5203 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3264, allocations: 4.312 kB / 0.5203 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3264, allocations: 3.469 kB / 0.5203 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.744e-05/0.3265, allocations: 30.02 kB / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3265, allocations: 0 / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.3265, allocations: 3.094 kB / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3265, allocations: 0 / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.59e-05/0.3265, allocations: 4 kB / 0.5204 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.807e-05/0.3266, allocations: 152 kB / 0.5205 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.247e-05/0.3267, allocations: 18.52 kB / 0.5205 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.153e-05/0.3267, allocations: 7.734 kB / 0.5206 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.3267, allocations: 0 / 0.5206 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.3267, allocations: 60.2 kB / 0.5206 GB, free: 33.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3268, allocations: 0 / 0.5206 GB, free: 33.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001576/0.3269, allocations: 73 kB / 0.5207 GB, free: 33.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.327, allocations: 77.11 kB / 0.5208 GB, free: 33.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.403e-05/0.327, allocations: 89.86 kB / 0.5208 GB, free: 33.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.327, allocations: 25.7 kB / 0.5209 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.577e-05/0.327, allocations: 84.08 kB / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.327, allocations: 3.469 kB / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.3271, allocations: 2.875 kB / 0.521 GB, free: 33.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.3271, allocations: 310.8 kB / 0.5212 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-06/0.3271, allocations: 8.125 kB / 0.5213 GB, free: 33.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.199e-06/0.3271, allocations: 3.094 kB / 0.5213 GB, free: 33.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.988e-05/0.3272, allocations: 59.14 kB / 0.5213 GB, free: 33.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.3272, allocations: 0 / 0.5213 GB, free: 33.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.801e-05/0.3272, allocations: 64.27 kB / 0.5214 GB, free: 33.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.3273, allocations: 35.3 kB / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3273, allocations: 0 / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3273, allocations: 2.531 kB / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.3273, allocations: 96 / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.3273, allocations: 7.938 kB / 0.5214 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3273, allocations: 0 / 0.5214 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.3273, allocations: 0 / 0.5214 GB, free: 33.11 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 5.49e-05/0.3274, allocations: 141.7 kB / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-06/0.3274, allocations: 6.906 kB / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.173e-06/0.3274, allocations: 6.719 kB / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-07/0.3274, allocations: 3.938 kB / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3274, allocations: 0 / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.3274, allocations: 0 / 0.5216 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.116e-05/0.3275, allocations: 152 kB / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3275, allocations: 0 / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3275, allocations: 0 / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.3275, allocations: 3.938 kB / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3275, allocations: 0 / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3275, allocations: 3.062 kB / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3275, allocations: 0 / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.966e-05/0.3276, allocations: 94.36 kB / 0.5218 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.3276, allocations: 81.09 kB / 0.5219 GB, free: 32.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3277, allocations: 7.938 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-06/0.3277, allocations: 3.938 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.3277, allocations: 2.938 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.3277, allocations: 3.984 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.567e-05/0.3277, allocations: 75.28 kB / 0.522 GB, free: 32.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3277, allocations: 0 / 0.522 GB, free: 32.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.3281, allocations: 165.7 kB / 0.5221 GB, free: 32.43 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.0007146/0.3289, allocations: 339.1 kB / 0.5225 GB, free: 32.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.17e-05/0.329, allocations: 61.06 kB / 0.5225 GB, free: 32.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.329, allocations: 0 / 0.5225 GB, free: 32.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.815e-05/0.329, allocations: 54.34 kB / 0.5226 GB, free: 32.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.3291, allocations: 10.94 kB / 0.5226 GB, free: 32.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001531/0.3293, allocations: 105.4 kB / 0.5227 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.133e-05/0.3294, allocations: 0.6692 MB / 0.5233 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-06/0.3294, allocations: 14.28 kB / 0.5233 GB, free: 31.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3294, allocations: 0 / 0.5233 GB, free: 31.29 MB / 378.7 MB Notification: Performance of Templates: time 0.004662/0.3341, allocations: 3.366 MB / 0.5266 GB, free: 30.98 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches