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.001761/0.001761, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.002169/0.002169, allocations: 162.5 kB / 24.5 MB, free: 3.711 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.484/1.484, allocations: 177.2 MB / 204.9 MB, free: 9 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.2105/0.2105, allocations: 34.27 MB / 295.5 MB, free: 14.55 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 0.002108/0.002108, allocations: 71.88 kB / 443.2 MB, free: 6.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3359, allocations: 66 MB / 0.4972 GB, free: 29.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001539/0.3375, allocations: 0.5031 MB / 0.4977 GB, free: 29.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.34, allocations: 2.241 MB / 0.4999 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.31e-05/0.34, allocations: 0 / 0.4999 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.34, allocations: 0 / 0.4999 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.34, allocations: 0 / 0.4999 GB, free: 28.02 MB / 446.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.001236/0.3413, allocations: 0.5845 MB / 0.5005 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.42e-05/0.3413, allocations: 0 / 0.5005 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.3413, allocations: 0 / 0.5005 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.193e-05/0.3414, allocations: 7.281 kB / 0.5005 GB, free: 27.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.596e-05/0.3414, allocations: 0 / 0.5005 GB, free: 27.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.3414, allocations: 0 / 0.5005 GB, free: 27.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008744/0.3423, allocations: 0.6871 MB / 0.5012 GB, free: 27.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-06/0.3423, allocations: 0 / 0.5012 GB, free: 27.58 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.3423, allocations: 3.984 kB / 0.5012 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004954/0.3428, allocations: 438.9 kB / 0.5016 GB, free: 27.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3428, allocations: 0 / 0.5016 GB, free: 27.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3428, allocations: 0 / 0.5016 GB, free: 27.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3428, allocations: 0 / 0.5016 GB, free: 27.45 MB / 446.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.0003134/0.3431, allocations: 375.3 kB / 0.5019 GB, free: 27.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.3431, allocations: 9.531 kB / 0.5019 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.3432, allocations: 0.9375 kB / 0.5019 GB, free: 27.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.507e-05/0.3432, allocations: 106.5 kB / 0.502 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3432, allocations: 3.531 kB / 0.5021 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.3432, allocations: 4.359 kB / 0.5021 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.395e-05/0.3433, allocations: 62.47 kB / 0.5021 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3433, allocations: 0 / 0.5021 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.3433, allocations: 0 / 0.5021 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3433, allocations: 0 / 0.5021 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.932e-05/0.3433, allocations: 32.89 kB / 0.5021 GB, free: 26.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.481e-05/0.3434, allocations: 97.33 kB / 0.5022 GB, free: 26.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.218e-05/0.3435, allocations: 50.73 kB / 0.5023 GB, free: 26.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.661e-05/0.3435, allocations: 33.62 kB / 0.5023 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-06/0.3435, allocations: 3.938 kB / 0.5023 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.3435, allocations: 56.27 kB / 0.5024 GB, free: 26.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3435, allocations: 3.281 kB / 0.5024 GB, free: 26.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000139/0.3436, allocations: 124.6 kB / 0.5025 GB, free: 26.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.3437, allocations: 80.27 kB / 0.5026 GB, free: 26.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.777e-05/0.3437, allocations: 93.81 kB / 0.5027 GB, free: 26.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.201e-06/0.3437, allocations: 29.83 kB / 0.5027 GB, free: 26.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.052e-05/0.3437, allocations: 84.14 kB / 0.5028 GB, free: 26.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.3437, allocations: 0 / 0.5028 GB, free: 26.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.3437, allocations: 24.3 kB / 0.5028 GB, free: 26.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.925e-05/0.3438, allocations: 310.8 kB / 0.5031 GB, free: 25.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/0.3438, allocations: 28.98 kB / 0.5031 GB, free: 25.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.217e-06/0.3438, allocations: 25.7 kB / 0.5031 GB, free: 25.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.87e-05/0.3438, allocations: 59.39 kB / 0.5032 GB, free: 25.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3438, allocations: 0 / 0.5032 GB, free: 25.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.44e-05/0.3439, allocations: 98.19 kB / 0.5033 GB, free: 25.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3439, allocations: 28.95 kB / 0.5033 GB, free: 25.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.3439, allocations: 3.062 kB / 0.5033 GB, free: 25.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3439, allocations: 7.875 kB / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.3439, allocations: 0 / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.3439, allocations: 0 / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.3439, allocations: 7.5 kB / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.3439, allocations: 3 kB / 0.5033 GB, free: 25.5 MB / 446.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 4.503e-05/0.344, allocations: 132.2 kB / 0.5035 GB, free: 25.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-06/0.344, allocations: 3.25 kB / 0.5035 GB, free: 25.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.646e-06/0.344, allocations: 10.97 kB / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.344, allocations: 0 / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.344, allocations: 0 / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.344, allocations: 0 / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.837e-05/0.3441, allocations: 104 kB / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.3441, allocations: 0 / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-07/0.3441, allocations: 4 kB / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.3441, allocations: 0 / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3441, allocations: 3.281 kB / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3441, allocations: 3.938 kB / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.3441, allocations: 0 / 0.5036 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.074e-05/0.3441, allocations: 128.9 kB / 0.5037 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.105e-06/0.3441, allocations: 0 / 0.5037 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-06/0.3441, allocations: 0 / 0.5037 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.3442, allocations: 3.938 kB / 0.5037 GB, free: 25.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.3442, allocations: 7.094 kB / 0.5037 GB, free: 25.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-06/0.3442, allocations: 3.422 kB / 0.5037 GB, free: 25.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.1e-05/0.3442, allocations: 75.28 kB / 0.5038 GB, free: 24.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3442, allocations: 0 / 0.5038 GB, free: 24.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.3446, allocations: 158.3 kB / 0.504 GB, free: 24.94 MB / 446.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.0006372/0.3452, allocations: 352.1 kB / 0.5043 GB, free: 24.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.041e-05/0.3453, allocations: 112.1 kB / 0.5044 GB, free: 24.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3453, allocations: 0 / 0.5044 GB, free: 24.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.259e-05/0.3453, allocations: 80.08 kB / 0.5045 GB, free: 24.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.3454, allocations: 11.09 kB / 0.5045 GB, free: 24.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.3456, allocations: 122.4 kB / 0.5046 GB, free: 24.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.707e-05/0.3456, allocations: 54.61 kB / 0.5047 GB, free: 24.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.109e-06/0.3456, allocations: 0 / 0.5047 GB, free: 24.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.3456, allocations: 15.47 kB / 0.5047 GB, free: 24.31 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3456, allocations: 0 / 0.5047 GB, free: 24.31 MB / 446.1 MB Notification: Performance of Templates: time 0.006952/0.3526, allocations: 3.607 MB / 0.5082 GB, free: 23.99 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/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.037897219997831]