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.0009384/0.0009384, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009085/0.0009085, allocations: 169.9 kB / 24.91 MB, free: 9.184 MB / 18.57 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.048/1.048, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.2685/0.2685, allocations: 34.27 MB / 296.1 MB, free: 0.7148 MB / 266.7 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.854e-06/1.854e-06, allocations: 0 / 325.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.801e-05, allocations: 3.781 kB / 325.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001951/0.001979, allocations: 0.5619 MB / 325.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.005556, allocations: 2.316 MB / 328.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.005576, allocations: 0 / 328.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.005591, allocations: 0 / 328.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.273e-05/0.005604, allocations: 0 / 328.2 MB, free: 4.766 MB / 298.7 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.001716/0.00732, allocations: 0.5376 MB / 328.7 MB, free: 4.227 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.834e-05/0.007379, allocations: 4 kB / 328.7 MB, free: 4.223 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.275e-05/0.007421, allocations: 0 / 328.7 MB, free: 4.223 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.174e-05/0.007453, allocations: 0 / 328.7 MB, free: 4.223 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.969e-05/0.007473, allocations: 4 kB / 328.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-06/0.00748, allocations: 0 / 328.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.008767, allocations: 0.7328 MB / 329.4 MB, free: 3.484 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.006e-05/0.008777, allocations: 7.938 kB / 329.4 MB, free: 3.477 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.826e-05/0.008796, allocations: 4.484 kB / 329.4 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008052/0.009601, allocations: 0.5182 MB / 330 MB, free: 2.953 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.009605, allocations: 0 / 330 MB, free: 2.953 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.009606, allocations: 0 / 330 MB, free: 2.953 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.00961, allocations: 0 / 330 MB, free: 2.953 MB / 298.7 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.0004001/0.01001, allocations: 345.3 kB / 330.3 MB, free: 2.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.01005, allocations: 12.03 kB / 330.3 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.01008, allocations: 4.938 kB / 330.3 MB, free: 2.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.341e-05/0.01015, allocations: 113.7 kB / 330.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.01016, allocations: 384 / 330.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-06/0.01017, allocations: 384 / 330.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.879e-05/0.01025, allocations: 55.97 kB / 330.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.01025, allocations: 192 / 330.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.722e-06/0.01026, allocations: 384 / 330.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.01027, allocations: 3.938 kB / 330.5 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.01029, allocations: 29.7 kB / 330.5 MB, free: 2.328 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.175e-05/0.01037, allocations: 65.03 kB / 330.6 MB, free: 2.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.203e-05/0.01042, allocations: 48.25 kB / 330.6 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.01044, allocations: 30.56 kB / 330.7 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.75e-06/0.01044, allocations: 4.062 kB / 330.7 MB, free: 2.145 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.01048, allocations: 56.27 kB / 330.7 MB, free: 2.074 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.01049, allocations: 0 / 330.7 MB, free: 2.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001321/0.01062, allocations: 114.8 kB / 330.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.01065, allocations: 77.11 kB / 330.9 MB, free: 1.844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.731e-05/0.01069, allocations: 89.86 kB / 331 MB, free: 1.746 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.0107, allocations: 25.7 kB / 331 MB, free: 1.715 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.418e-05/0.01073, allocations: 84.27 kB / 331.1 MB, free: 1.629 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.01074, allocations: 5.312 kB / 331.1 MB, free: 1.625 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.01077, allocations: 21.7 kB / 331.1 MB, free: 1.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.073e-05/0.01086, allocations: 314.8 kB / 331.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.351e-05/0.01089, allocations: 33.69 kB / 331.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.575e-05/0.0109, allocations: 25.7 kB / 331.5 MB, free: 1.211 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.863e-05/0.01095, allocations: 60.27 kB / 331.5 MB, free: 1.137 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01095, allocations: 0 / 331.5 MB, free: 1.137 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.267e-05/0.01103, allocations: 85.09 kB / 331.6 MB, free: 1.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.01106, allocations: 40.14 kB / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.01106, allocations: 0 / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.01108, allocations: 0 / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.01108, allocations: 0 / 331.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-06/0.01108, allocations: 3.938 kB / 331.7 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.523e-05/0.0111, allocations: 3.938 kB / 331.7 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.01111, allocations: 7.938 kB / 331.7 MB, free: 0.9766 MB / 298.7 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 6.846e-05/0.01117, allocations: 131.5 kB / 331.8 MB, free: 0.832 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-06/0.01118, allocations: 4 kB / 331.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.049e-05/0.01119, allocations: 6.984 kB / 331.8 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01119, allocations: 4 kB / 331.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.0112, allocations: 0 / 331.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.0112, allocations: 0 / 331.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.987e-05/0.01126, allocations: 73.84 kB / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.01126, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.01126, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.01126, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-06/0.01126, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.01127, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01127, allocations: 0 / 331.9 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.01137, allocations: 124.4 kB / 332 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-06/0.01137, allocations: 4.375 kB / 332 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.01138, allocations: 0 / 332 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-06/0.01139, allocations: 3.984 kB / 332 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.0114, allocations: 4 kB / 332 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.01141, allocations: 0 / 332 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.215e-06/0.01141, allocations: 4.859 kB / 332 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01141, allocations: 0 / 332 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003805/0.01179, allocations: 163.3 kB / 332.2 MB, free: 408 kB / 298.7 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.0007449/0.01254, allocations: 367.3 kB / 332.6 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.01266, allocations: 119.8 kB / 332.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.01266, allocations: 0 / 332.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.481e-05/0.01269, allocations: 89.97 kB / 332.8 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.655e-05/0.01276, allocations: 18.61 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001714/0.01293, allocations: 111.1 kB / 332.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.111e-05/0.01296, allocations: 55.48 kB / 332.9 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.01297, allocations: 0 / 332.9 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.013, allocations: 55.36 kB / 333 MB, free: 15.5 MB / 314.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01301, allocations: 0 / 333 MB, free: 15.5 MB / 314.7 MB Notification: Performance of Templates: time 0.007932/0.02094, allocations: 4.298 MB / 337.3 MB, free: 11.21 MB / 314.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.945330935996026]