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.001958/0.001958, allocations: 106.8 kB / 21.19 MB, free: 0.6289 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.003002/0.003002, allocations: 207.6 kB / 24.49 MB, free: 3.918 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.532/1.532, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.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.2405/0.2405, allocations: 46.96 MB / 361.6 MB, free: 4.055 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.002093/0.002093, allocations: 71.89 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3112, allocations: 66.03 MB / 0.5618 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001605/0.3128, allocations: 0.5001 MB / 0.5623 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003397/0.3162, allocations: 2.241 MB / 0.5645 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.311e-05/0.3162, allocations: 0 / 0.5645 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.3162, allocations: 4 kB / 0.5645 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.3162, allocations: 0 / 0.5645 GB, free: 1.41 MB / 398.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.001573/0.3178, allocations: 0.5878 MB / 0.5651 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.462e-05/0.3178, allocations: 4 kB / 0.5651 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.803e-05/0.3179, allocations: 0 / 0.5651 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.54e-05/0.3179, allocations: 4 kB / 0.5651 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.3179, allocations: 4 kB / 0.5651 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-06/0.3179, allocations: 0 / 0.5651 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.3191, allocations: 0.7214 MB / 0.5658 GB, free: 92 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.869e-06/0.3191, allocations: 4 kB / 0.5658 GB, free: 88 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.742e-05/0.3191, allocations: 3.984 kB / 0.5658 GB, free: 84 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006759/0.3198, allocations: 445.2 kB / 0.5662 GB, free: 15.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3198, allocations: 0 / 0.5662 GB, free: 15.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3198, allocations: 4 kB / 0.5662 GB, free: 15.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3198, allocations: 4 kB / 0.5662 GB, free: 15.64 MB / 414.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.0004694/0.3203, allocations: 363 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3203, allocations: 15.95 kB / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.3204, allocations: 4.938 kB / 0.5666 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.746e-05/0.3205, allocations: 102.5 kB / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.283e-06/0.3205, allocations: 384 / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.3205, allocations: 4.359 kB / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.429e-05/0.3206, allocations: 59.72 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3206, allocations: 0 / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.3206, allocations: 0 / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.3206, allocations: 4 kB / 0.5668 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.822e-05/0.3206, allocations: 37.62 kB / 0.5668 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001051/0.3207, allocations: 97.33 kB / 0.5669 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.375e-05/0.3208, allocations: 44.31 kB / 0.5669 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.482e-05/0.3208, allocations: 30.56 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.3208, allocations: 0 / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.3209, allocations: 60.33 kB / 0.567 GB, free: 14.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.3209, allocations: 0 / 0.567 GB, free: 14.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000206/0.3211, allocations: 130.7 kB / 0.5671 GB, free: 14.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3211, allocations: 77.11 kB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.816e-05/0.3212, allocations: 97.94 kB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.3212, allocations: 25.7 kB / 0.5673 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.3212, allocations: 88.14 kB / 0.5674 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.3213, allocations: 3.938 kB / 0.5674 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.3213, allocations: 9.719 kB / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3214, allocations: 322.8 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.302e-05/0.3215, allocations: 25.7 kB / 0.5678 GB, free: 13.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.31e-05/0.3215, allocations: 25.7 kB / 0.5678 GB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.167e-05/0.3215, allocations: 60.27 kB / 0.5678 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3215, allocations: 0 / 0.5678 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.329e-05/0.3216, allocations: 101.1 kB / 0.5679 GB, free: 13.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.3217, allocations: 33.7 kB / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.3217, allocations: 0 / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3217, allocations: 3.938 kB / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3217, allocations: 0 / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3217, allocations: 0 / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.3217, allocations: 4 kB / 0.568 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.3217, allocations: 0 / 0.568 GB, free: 13.57 MB / 414.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 9.157e-05/0.3218, allocations: 139.5 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-06/0.3218, allocations: 4.031 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.189e-05/0.3218, allocations: 7 kB / 0.5681 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3218, allocations: 3.938 kB / 0.5681 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3218, allocations: 0 / 0.5681 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-06/0.3218, allocations: 0 / 0.5681 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.3218, allocations: 3.938 kB / 0.5681 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.3218, allocations: 0 / 0.5681 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.354e-05/0.3219, allocations: 4 kB / 0.5681 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001574/0.322, allocations: 227.7 kB / 0.5683 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000185/0.3222, allocations: 266.2 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.277e-05/0.3222, allocations: 37.77 kB / 0.5686 GB, free: 12.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.3223, allocations: 75.28 kB / 0.5687 GB, free: 12.74 MB / 414.1 MB Notification: Performance of Backend: time 3.01e-07/0.3223, allocations: 0 / 0.5687 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3233, allocations: 403.7 kB / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004419/0.3238, allocations: 0.5872 MB / 0.5697 GB, free: 11.68 MB / 414.1 MB Notification: Performance of Templates: time 0.007766/0.3315, allocations: 3.629 MB / 0.5732 GB, free: 8.051 MB / 414.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/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.340640688002168]