Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 161.2 kB / 24.91 MB, free: 9.18 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9974/0.9974, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2644/0.2644, allocations: 34.86 MB / 296.6 MB, free: 456 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 325.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.972e-05/3.124e-05, allocations: 3.016 kB / 325.9 MB, free: 7.148 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001972/0.002003, allocations: 0.518 MB / 326.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002907/0.00491, allocations: 2.308 MB / 328.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.933e-05/0.00493, allocations: 4 kB / 328.7 MB, free: 4.297 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.004946, allocations: 0 / 328.7 MB, free: 4.297 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.664e-06/0.004954, allocations: 0 / 328.7 MB, free: 4.297 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.006527, allocations: 0.5916 MB / 329.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.658e-05/0.006583, allocations: 4.625 kB / 329.3 MB, free: 3.699 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.006625, allocations: 0 / 329.3 MB, free: 3.699 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.376e-05/0.006668, allocations: 0 / 329.3 MB, free: 3.699 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.816e-05/0.006697, allocations: 8 kB / 329.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.006707, allocations: 0 / 329.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.007907, allocations: 0.6665 MB / 330 MB, free: 3.023 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.007918, allocations: 4 kB / 330 MB, free: 3.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.007934, allocations: 4 kB / 330 MB, free: 3.016 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006594/0.008593, allocations: 0.5266 MB / 330.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.008597, allocations: 0 / 330.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.008597, allocations: 0 / 330.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.008601, allocations: 3.938 kB / 330.5 MB, free: 2.484 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.0003678/0.008969, allocations: 337.4 kB / 330.9 MB, free: 2.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.009002, allocations: 8.031 kB / 330.9 MB, free: 2.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.009028, allocations: 4.938 kB / 330.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.645e-05/0.009085, allocations: 109.8 kB / 331 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.009095, allocations: 384 / 331 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.009103, allocations: 384 / 331 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.883e-05/0.009172, allocations: 71.89 kB / 331.1 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.009178, allocations: 192 / 331.1 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.009184, allocations: 384 / 331.1 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.009189, allocations: 3.938 kB / 331.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.526e-05/0.009204, allocations: 29.7 kB / 331.1 MB, free: 1.859 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.94e-05/0.009264, allocations: 53.05 kB / 331.1 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.332e-05/0.009307, allocations: 44.31 kB / 331.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.009324, allocations: 34.5 kB / 331.2 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-06/0.009328, allocations: 3.984 kB / 331.2 MB, free: 1.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.009364, allocations: 64.27 kB / 331.3 MB, free: 1.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.009365, allocations: 4 kB / 331.3 MB, free: 1.605 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001137/0.009478, allocations: 110.8 kB / 331.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.009513, allocations: 81.11 kB / 331.5 MB, free: 1.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.308e-05/0.009546, allocations: 93.84 kB / 331.6 MB, free: 1.273 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.009556, allocations: 25.7 kB / 331.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.091e-05/0.009577, allocations: 80.14 kB / 331.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.009594, allocations: 1.375 kB / 331.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.009617, allocations: 13.72 kB / 331.7 MB, free: 1.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.567e-05/0.009693, allocations: 314.8 kB / 332 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.77e-05/0.009711, allocations: 29.83 kB / 332 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.009724, allocations: 33.64 kB / 332.1 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.482e-05/0.009769, allocations: 64.25 kB / 332.1 MB, free: 0.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.009771, allocations: 0 / 332.1 MB, free: 0.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.829e-05/0.009829, allocations: 81.11 kB / 332.2 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.009863, allocations: 33.7 kB / 332.2 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.009867, allocations: 0 / 332.2 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.009877, allocations: 0 / 332.2 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-06/0.00988, allocations: 0 / 332.2 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.009883, allocations: 3.984 kB / 332.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.338e-05/0.009897, allocations: 4.094 kB / 332.2 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.009904, allocations: 3.938 kB / 332.2 MB, free: 0.5195 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 7.575e-05/0.00998, allocations: 143.5 kB / 332.4 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-06/0.009987, allocations: 3.938 kB / 332.4 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-06/0.009996, allocations: 7 kB / 332.4 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.009999, allocations: 3.984 kB / 332.4 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.01, allocations: 0 / 332.4 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.01, allocations: 0 / 332.4 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.799e-05/0.01005, allocations: 65.83 kB / 332.5 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01005, allocations: 4 kB / 332.5 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.01005, allocations: 4 kB / 332.5 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.92e-07/0.01005, allocations: 0 / 332.5 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-06/0.01006, allocations: 0 / 332.5 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.01006, allocations: 0 / 332.5 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.01006, allocations: 3.938 kB / 332.5 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.253e-05/0.01013, allocations: 116.5 kB / 332.6 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.64e-06/0.01014, allocations: 8.281 kB / 332.6 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.01015, allocations: 0 / 332.6 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.69e-06/0.01015, allocations: 0 / 332.6 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.787e-06/0.01016, allocations: 0 / 332.6 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.01016, allocations: 4.031 kB / 332.6 MB, free: 104 kB / 298.7 MB Notification: Performance of sorting global known variables: time 8.325e-06/0.01017, allocations: 12.8 kB / 332.6 MB, free: 88 kB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01017, allocations: 0 / 332.6 MB, free: 88 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003492/0.01052, allocations: 167.4 kB / 332.8 MB, free: 15.92 MB / 314.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.0006074/0.01113, allocations: 354 kB / 333.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.286e-05/0.01122, allocations: 127.7 kB / 333.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.01123, allocations: 4 kB / 333.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.173e-05/0.01126, allocations: 85.97 kB / 333.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.615e-05/0.0113, allocations: 7.875 kB / 333.3 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.01146, allocations: 110.2 kB / 333.4 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.843e-05/0.01149, allocations: 55.36 kB / 333.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.189e-06/0.01149, allocations: 0 / 333.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.009e-05/0.01152, allocations: 51.38 kB / 333.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01152, allocations: 0 / 333.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of Templates: time 0.00572/0.01724, allocations: 4.311 MB / 337.9 MB, free: 10.75 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.9788163038901985]