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.001546/0.001546, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002023/0.002023, allocations: 218.2 kB / 23.73 MB, free: 4.16 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2459/0.2459, allocations: 46.94 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] 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.00199/0.00199, allocations: 71.89 kB / 0.4966 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.355, allocations: 66.04 MB / 0.5611 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001943/0.3569, allocations: 0.4996 MB / 0.5616 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.3607, allocations: 2.245 MB / 0.5638 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.838e-05/0.3608, allocations: 0 / 0.5638 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.988e-05/0.3608, allocations: 0 / 0.5638 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.3608, allocations: 0 / 0.5638 GB, free: 1.379 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.001763/0.3626, allocations: 0.5841 MB / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.807e-05/0.3626, allocations: 0 / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.603e-05/0.3627, allocations: 4 kB / 0.5643 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.665e-05/0.3627, allocations: 4 kB / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.726e-05/0.3627, allocations: 0 / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-06/0.3627, allocations: 0 / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.3639, allocations: 0.6784 MB / 0.565 GB, free: 112 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.445e-06/0.3639, allocations: 0 / 0.565 GB, free: 112 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.364, allocations: 3.938 kB / 0.565 GB, free: 108 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.3647, allocations: 445.4 kB / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3647, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3647, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3647, allocations: 0 / 0.5654 GB, free: 15.67 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.00049/0.3652, allocations: 370.9 kB / 0.5658 GB, free: 15.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3652, allocations: 8.031 kB / 0.5658 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.3652, allocations: 4.922 kB / 0.5658 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.63e-05/0.3653, allocations: 102.5 kB / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.293e-06/0.3653, allocations: 4.375 kB / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.3653, allocations: 384 / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.3655, allocations: 63.72 kB / 0.566 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3655, allocations: 0 / 0.566 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-06/0.3655, allocations: 0 / 0.566 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3655, allocations: 0 / 0.566 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.253e-05/0.3655, allocations: 33.58 kB / 0.566 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.3656, allocations: 105.3 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.117e-05/0.3657, allocations: 40.28 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.035e-05/0.3657, allocations: 34.66 kB / 0.5662 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3657, allocations: 4 kB / 0.5662 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.3658, allocations: 56.27 kB / 0.5662 GB, free: 14.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3658, allocations: 0 / 0.5662 GB, free: 14.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002072/0.366, allocations: 126.7 kB / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.366, allocations: 77.11 kB / 0.5664 GB, free: 14.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.214e-05/0.3661, allocations: 101.8 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.3661, allocations: 29.83 kB / 0.5665 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.3662, allocations: 84.14 kB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.3662, allocations: 3.984 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.3662, allocations: 13.72 kB / 0.5666 GB, free: 14.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3664, allocations: 314.8 kB / 0.5669 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.74e-05/0.3664, allocations: 29.7 kB / 0.567 GB, free: 13.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.835e-05/0.3664, allocations: 25.7 kB / 0.567 GB, free: 13.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.755e-05/0.3665, allocations: 64.27 kB / 0.5671 GB, free: 13.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3665, allocations: 0 / 0.5671 GB, free: 13.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.386e-05/0.3666, allocations: 93.12 kB / 0.5671 GB, free: 13.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3666, allocations: 33.7 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3666, allocations: 0 / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3666, allocations: 3.938 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.317e-06/0.3666, allocations: 4 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3666, allocations: 0 / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.41e-05/0.3666, allocations: 0 / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-06/0.3667, allocations: 0 / 0.5672 GB, free: 13.61 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 0.0001071/0.3668, allocations: 139.5 kB / 0.5673 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-06/0.3668, allocations: 3.984 kB / 0.5673 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.3668, allocations: 6.938 kB / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3668, allocations: 4 kB / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3668, allocations: 0 / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.3668, allocations: 0 / 0.5673 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.266e-05/0.3669, allocations: 101.3 kB / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3669, allocations: 0 / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3669, allocations: 0 / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3669, allocations: 0 / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.3669, allocations: 0 / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3669, allocations: 3.938 kB / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3669, allocations: 7.984 kB / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.367, allocations: 124.5 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-06/0.367, allocations: 0 / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.367, allocations: 7.922 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.55e-05/0.367, allocations: 7.922 kB / 0.5676 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.611e-05/0.3671, allocations: 4 kB / 0.5676 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.3671, allocations: 3.938 kB / 0.5676 GB, free: 13.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.3671, allocations: 75.28 kB / 0.5676 GB, free: 13.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3671, allocations: 0 / 0.5676 GB, free: 13.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004304/0.3675, allocations: 163.4 kB / 0.5678 GB, free: 12.89 MB / 414.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.0007875/0.3683, allocations: 338.3 kB / 0.5681 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.3685, allocations: 122.7 kB / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3685, allocations: 0 / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.378e-05/0.3685, allocations: 81.11 kB / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.3686, allocations: 0 / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002401/0.3689, allocations: 118.8 kB / 0.5684 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.477e-05/0.3689, allocations: 59.36 kB / 0.5685 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.643e-06/0.3689, allocations: 0 / 0.5685 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.369, allocations: 7.438 kB / 0.5685 GB, free: 12.07 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.369, allocations: 0 / 0.5685 GB, free: 12.07 MB / 414.1 MB Notification: Performance of Templates: time 0.008107/0.3771, allocations: 3.601 MB / 0.572 GB, free: 8.477 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/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.41328395344317]