Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001265/0.001265, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001334/0.001334, allocations: 170.4 kB / 24.82 MB, free: 9.324 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.068/1.068, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2628/0.2628, allocations: 32.8 MB / 294.6 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 376.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.633e-05/4.896e-05, allocations: 5.547 kB / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002908/0.002957, allocations: 0.5163 MB / 377 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005185/0.008141, allocations: 2.28 MB / 379.3 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.721e-05/0.008179, allocations: 0 / 379.3 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.049e-05/0.008209, allocations: 0 / 379.3 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.09e-05/0.00822, allocations: 4 kB / 379.3 MB, free: 1.586 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.002727/0.01095, allocations: 0.5917 MB / 379.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.721e-05/0.01102, allocations: 0 / 379.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.928e-05/0.01108, allocations: 4 kB / 379.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.04e-05/0.01113, allocations: 0 / 379.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.258e-05/0.01117, allocations: 0 / 379.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.01118, allocations: 0 / 379.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.01296, allocations: 0.6821 MB / 380.6 MB, free: 312 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.01297, allocations: 0 / 380.6 MB, free: 312 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.013, allocations: 4 kB / 380.6 MB, free: 308 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.0142, allocations: 0.522 MB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.01421, allocations: 0 / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.01421, allocations: 0 / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.01422, allocations: 0 / 381.1 MB, free: 15.78 MB / 362.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.0006855/0.0149, allocations: 481 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.469e-05/0.01498, allocations: 12.03 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.01502, allocations: 0.9375 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.218e-05/0.01512, allocations: 108.6 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.01514, allocations: 8.312 kB / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.01515, allocations: 384 / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.01528, allocations: 59.95 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.01529, allocations: 192 / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.0153, allocations: 384 / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.01531, allocations: 3.938 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.414e-05/0.01534, allocations: 29.7 kB / 381.8 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.01547, allocations: 97.27 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.605e-05/0.01555, allocations: 52.7 kB / 381.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.01558, allocations: 37.48 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.83e-06/0.01558, allocations: 0 / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.508e-05/0.01565, allocations: 63.08 kB / 382 MB, free: 14.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.883e-06/0.01565, allocations: 0 / 382 MB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002428/0.01589, allocations: 118.8 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.01595, allocations: 77.11 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.947e-05/0.01602, allocations: 146.2 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.01603, allocations: 29.83 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.01608, allocations: 126.9 kB / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.0161, allocations: 352 / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.01615, allocations: 19.38 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.01633, allocations: 500 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.815e-05/0.01636, allocations: 29.7 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.21e-05/0.01638, allocations: 25.7 kB / 383.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.607e-05/0.01646, allocations: 67.08 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.01646, allocations: 0 / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001213/0.01658, allocations: 97.11 kB / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.874e-05/0.01663, allocations: 33.73 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.01663, allocations: 3.938 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.01665, allocations: 0 / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.657e-06/0.01666, allocations: 4 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.01666, allocations: 0 / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.272e-05/0.01668, allocations: 7.875 kB / 383.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.01669, allocations: 3.984 kB / 383.3 MB, free: 13.29 MB / 362.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 0.0001228/0.01681, allocations: 182.3 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.01683, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.01685, allocations: 3 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01685, allocations: 4 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.01685, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.01686, allocations: 4 kB / 383.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.396e-05/0.01695, allocations: 93.2 kB / 383.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.01696, allocations: 0 / 383.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-06/0.01696, allocations: 7.984 kB / 383.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.01697, allocations: 0 / 383.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.01697, allocations: 4 kB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.01697, allocations: 0 / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.01698, allocations: 0 / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.01714, allocations: 135.8 kB / 383.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-06/0.01715, allocations: 0 / 383.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.01717, allocations: 7.938 kB / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.286e-05/0.01718, allocations: 0 / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.01719, allocations: 0 / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.0172, allocations: 0 / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.999e-05/0.01725, allocations: 119.2 kB / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01725, allocations: 0 / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006221/0.01787, allocations: 163.3 kB / 384 MB, free: 12.5 MB / 362.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.0009746/0.01884, allocations: 374.4 kB / 384.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001426/0.01899, allocations: 118.5 kB / 384.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.01899, allocations: 0 / 384.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.345e-05/0.01904, allocations: 92.8 kB / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.01919, allocations: 14.28 kB / 384.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.01944, allocations: 114.6 kB / 384.7 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.128e-05/0.01949, allocations: 63.27 kB / 384.7 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.436e-06/0.0195, allocations: 0 / 384.7 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.01956, allocations: 70.2 kB / 384.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01956, allocations: 0 / 384.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of Templates: time 0.01028/0.02984, allocations: 4.317 MB / 389.1 MB, free: 7.25 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.1974738617427647]