Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.555/1.555, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2114/0.2114, allocations: 34.27 MB / 294.9 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.715e-05, allocations: 2.281 kB / 442.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001577/0.001604, allocations: 0.5088 MB / 443.2 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003966/0.005569, allocations: 2.241 MB / 445.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.855e-05/0.005588, allocations: 0 / 445.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.026e-05/0.005608, allocations: 0 / 445.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.344e-06/0.005616, allocations: 0 / 445.4 MB, free: 2.633 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001906/0.007522, allocations: 0.5911 MB / 446 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.792e-05/0.00758, allocations: 0 / 446 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.007625, allocations: 0 / 446 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.302e-05/0.007658, allocations: 4 kB / 446 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.052e-05/0.007679, allocations: 0 / 446 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.00769, allocations: 0 / 446 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.009038, allocations: 0.686 MB / 446.7 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.009051, allocations: 3.984 kB / 446.7 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.939e-05/0.00907, allocations: 0 / 446.7 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008423/0.009913, allocations: 0.5299 MB / 447.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.009916, allocations: 0 / 447.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.009917, allocations: 3.938 kB / 447.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.009922, allocations: 4 kB / 447.2 MB, free: 0.8086 MB / 366.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.0005743/0.0105, allocations: 359.1 kB / 447.6 MB, free: 432 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.01054, allocations: 12.02 kB / 447.6 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.01058, allocations: 4.938 kB / 447.6 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.01069, allocations: 105.8 kB / 447.7 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.0107, allocations: 4.359 kB / 447.7 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.01071, allocations: 384 / 447.7 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.01084, allocations: 63.91 kB / 447.8 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.01085, allocations: 192 / 447.8 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.01086, allocations: 384 / 447.8 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.01087, allocations: 7.938 kB / 447.8 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.808e-05/0.01091, allocations: 29.7 kB / 447.8 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.01104, allocations: 97.31 kB / 447.9 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2017/0.2128, allocations: 46.09 kB / 448 MB, free: 19.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.037e-05/0.2128, allocations: 34.28 kB / 448 MB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.2128, allocations: 0.875 kB / 448 MB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.2128, allocations: 58.83 kB / 448.1 MB, free: 19.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 3.016e-06/0.2128, allocations: 3.562 kB / 448.1 MB, free: 19.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002194/0.2131, allocations: 120.3 kB / 448.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.2131, allocations: 83.83 kB / 448.3 MB, free: 19.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.906e-05/0.2131, allocations: 89.86 kB / 448.3 MB, free: 18.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-06/0.2131, allocations: 25.7 kB / 448.4 MB, free: 18.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-06/0.2131, allocations: 81.8 kB / 448.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.2132, allocations: 1.578 kB / 448.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.2132, allocations: 15.3 kB / 448.5 MB, free: 18.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.256e-05/0.2132, allocations: 312.6 kB / 448.8 MB, free: 18.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.571e-05/0.2132, allocations: 29.3 kB / 448.8 MB, free: 18.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.291e-05/0.2133, allocations: 30.34 kB / 448.8 MB, free: 18.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.388e-05/0.2133, allocations: 63.69 kB / 448.9 MB, free: 18.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2133, allocations: 3.75 kB / 448.9 MB, free: 18.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.011e-05/0.2133, allocations: 89.83 kB / 449 MB, free: 18.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.2134, allocations: 31.92 kB / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2134, allocations: 1.766 kB / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.2134, allocations: 2.719 kB / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.2134, allocations: 0 / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2134, allocations: 1.656 kB / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.894e-05/0.2134, allocations: 1.125 kB / 449 MB, free: 18.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.2134, allocations: 0.7969 kB / 449 MB, free: 18.22 MB / 366.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 5.242e-05/0.2135, allocations: 143 kB / 449.2 MB, free: 18.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.2135, allocations: 9.547 kB / 449.2 MB, free: 18.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.221e-05/0.2135, allocations: 3.797 kB / 449.2 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2135, allocations: 0 / 449.2 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2135, allocations: 2.469 kB / 449.2 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2135, allocations: 0 / 449.2 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.422e-05/0.2136, allocations: 100.7 kB / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2136, allocations: 0 / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.483e-06/0.2136, allocations: 1.719 kB / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2136, allocations: 0 / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2136, allocations: 1.859 kB / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2136, allocations: 2.516 kB / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2136, allocations: 1.188 kB / 449.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.713e-05/0.2137, allocations: 124.9 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-06/0.2137, allocations: 5.375 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.2137, allocations: 1.594 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.077e-05/0.2137, allocations: 4.938 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.2137, allocations: 4.047 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.2137, allocations: 0 / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.213e-05/0.2137, allocations: 77.11 kB / 449.5 MB, free: 17.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2137, allocations: 0 / 449.5 MB, free: 17.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005235/0.2142, allocations: 165.1 kB / 449.7 MB, free: 17.73 MB / 366.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.0008448/0.2151, allocations: 373 kB / 450 MB, free: 17.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.2152, allocations: 115.2 kB / 450.1 MB, free: 17.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2152, allocations: 1.156 kB / 450.1 MB, free: 17.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.5e-05/0.2152, allocations: 86.89 kB / 450.2 MB, free: 17.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.2153, allocations: 6.734 kB / 450.2 MB, free: 17.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000164/0.2155, allocations: 104.4 kB / 450.3 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.702e-05/0.2155, allocations: 59.14 kB / 450.4 MB, free: 17.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.2155, allocations: 4.281 kB / 450.4 MB, free: 17.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.107e-05/0.2156, allocations: 9.625 kB / 450.4 MB, free: 17.18 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2156, allocations: 0 / 450.4 MB, free: 17.18 MB / 366.1 MB Notification: Performance of Templates: time 0.009272/0.2248, allocations: 3.65 MB / 454 MB, free: 16.9 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.166096523404121]