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.001385/0.001385, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001605/0.001605, allocations: 215.2 kB / 23.75 MB, free: 4.668 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.549/1.549, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.3385/0.3385, allocations: 46.94 MB / 360.9 MB, free: 4.254 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.002095/0.002095, allocations: 63.91 kB / 0.4966 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4405, allocations: 66.03 MB / 0.5611 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002444/0.4429, allocations: 0.5035 MB / 0.5616 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005394/0.4483, allocations: 2.404 MB / 0.564 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.4483, allocations: 3.938 kB / 0.564 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.486e-05/0.4483, allocations: 0 / 0.564 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.707e-06/0.4483, allocations: 0 / 0.564 GB, free: 1.492 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.002528/0.4509, allocations: 0.5765 MB / 0.5645 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.575e-05/0.4509, allocations: 7.938 kB / 0.5645 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.138e-05/0.451, allocations: 3.984 kB / 0.5645 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.451, allocations: 7.938 kB / 0.5645 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.753e-05/0.4511, allocations: 3.984 kB / 0.5645 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-06/0.4511, allocations: 0 / 0.5645 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002076/0.4532, allocations: 0.7993 MB / 0.5653 GB, free: 92 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.4532, allocations: 0 / 0.5653 GB, free: 92 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.964e-05/0.4532, allocations: 4 kB / 0.5653 GB, free: 88 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009988/0.4542, allocations: 457.2 kB / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.4542, allocations: 4 kB / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4542, allocations: 0 / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.4542, allocations: 4 kB / 0.5658 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.0006727/0.4549, allocations: 367.1 kB / 0.5661 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.4549, allocations: 8.031 kB / 0.5661 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.218e-05/0.455, allocations: 4.938 kB / 0.5661 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.4551, allocations: 106.5 kB / 0.5662 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.4551, allocations: 4.375 kB / 0.5662 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.4551, allocations: 4.312 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.4552, allocations: 38 kB / 0.5663 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.4553, allocations: 0 / 0.5663 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.4553, allocations: 4 kB / 0.5663 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.4553, allocations: 0 / 0.5663 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.525e-05/0.4553, allocations: 4 kB / 0.5663 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000228/0.4555, allocations: 116.8 kB / 0.5664 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.915e-05/0.4556, allocations: 18.52 kB / 0.5664 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.705e-05/0.4556, allocations: 12.94 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.4556, allocations: 0 / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.045e-05/0.4557, allocations: 64.2 kB / 0.5665 GB, free: 14.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.4557, allocations: 0 / 0.5665 GB, free: 14.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002202/0.4559, allocations: 63.41 kB / 0.5666 GB, free: 14.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.456, allocations: 77.11 kB / 0.5666 GB, free: 14.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.891e-05/0.456, allocations: 101.7 kB / 0.5667 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.4561, allocations: 29.7 kB / 0.5668 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.4561, allocations: 80.14 kB / 0.5668 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.4561, allocations: 4 kB / 0.5668 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.4562, allocations: 13.84 kB / 0.5668 GB, free: 14.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4563, allocations: 322.8 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.4563, allocations: 0 / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-06/0.4563, allocations: 0 / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.81e-05/0.4564, allocations: 60.27 kB / 0.5672 GB, free: 13.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4564, allocations: 0 / 0.5672 GB, free: 13.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.711e-05/0.4565, allocations: 63.39 kB / 0.5673 GB, free: 13.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.4565, allocations: 33.64 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4565, allocations: 4.094 kB / 0.5673 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4565, allocations: 0 / 0.5673 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.4565, allocations: 7.938 kB / 0.5673 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4566, allocations: 0 / 0.5673 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.4566, allocations: 0 / 0.5673 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.4566, allocations: 0 / 0.5673 GB, free: 13.82 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.0001074/0.4567, allocations: 143.5 kB / 0.5675 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-06/0.4567, allocations: 3.938 kB / 0.5675 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.518e-05/0.4567, allocations: 6.984 kB / 0.5675 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.4567, allocations: 4 kB / 0.5675 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4567, allocations: 3.938 kB / 0.5675 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4567, allocations: 0 / 0.5675 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.4568, allocations: 116.8 kB / 0.5676 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.4568, allocations: 0 / 0.5676 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.4568, allocations: 3.984 kB / 0.5676 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.4568, allocations: 3.938 kB / 0.5676 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.4568, allocations: 0 / 0.5676 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4568, allocations: 0 / 0.5676 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4568, allocations: 4 kB / 0.5676 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.457, allocations: 94.83 kB / 0.5677 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-06/0.457, allocations: 7.938 kB / 0.5677 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.457, allocations: 7.938 kB / 0.5677 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.457, allocations: 0 / 0.5677 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.349e-05/0.457, allocations: 4 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.457, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.721e-05/0.4571, allocations: 79.28 kB / 0.5678 GB, free: 13.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4571, allocations: 0 / 0.5678 GB, free: 13.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004672/0.4575, allocations: 159.4 kB / 0.5679 GB, free: 13.11 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.0008288/0.4584, allocations: 348.8 kB / 0.5683 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.4585, allocations: 63.39 kB / 0.5683 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4585, allocations: 4.062 kB / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.364e-05/0.4585, allocations: 55.41 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.4587, allocations: 0 / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000251/0.4589, allocations: 88.94 kB / 0.5685 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.4593, allocations: 0.6768 MB / 0.5691 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.702e-06/0.4593, allocations: 0 / 0.5691 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.4593, allocations: 7.438 kB / 0.5691 GB, free: 11.79 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4593, allocations: 0 / 0.5691 GB, free: 11.79 MB / 414.1 MB Notification: Performance of Templates: time 0.008298/0.4676, allocations: 3.612 MB / 0.5727 GB, free: 8.184 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.735750728053972]