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.0007928/0.0007928, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001243/0.002036, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006763/0.0006763, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00091/0.001586, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 1.029/1.029, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09107/1.12, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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.2756/0.2756, allocations: 34.89 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03498/0.3106, allocations: 13.24 MB / 292.8 MB, free: 6.402 MB / 282.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.784e-06/1.784e-06, allocations: 0 / 294.1 MB, free: 5.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.244e-05/3.423e-05, allocations: 6.297 kB / 294.1 MB, free: 5.105 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002446/0.00248, allocations: 0.5618 MB / 294.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.006756, allocations: 2.343 MB / 297 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.569e-05/0.006782, allocations: 0 / 297 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.367e-06/0.006791, allocations: 0 / 297 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.924e-06/0.006793, allocations: 0 / 297 MB, free: 2.18 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1121:5-1217: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.002125/0.008918, allocations: 0.5214 MB / 297.5 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.899e-05/0.008997, allocations: 8 kB / 297.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.643e-05/0.009043, allocations: 4 kB / 297.5 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.659e-05/0.00909, allocations: 7.984 kB / 297.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.565e-05/0.009116, allocations: 0 / 297.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.009123, allocations: 0 / 297.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.01056, allocations: 0.7406 MB / 298.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.01058, allocations: 0 / 298.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.728e-05/0.0106, allocations: 0 / 298.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008569/0.01145, allocations: 442.8 kB / 298.7 MB, free: 472 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.212e-05/0.01146, allocations: 0 / 298.7 MB, free: 472 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.01147, allocations: 0 / 298.7 MB, free: 472 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.01148, allocations: 4 kB / 298.7 MB, free: 468 kB / 282.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.0006247/0.01211, allocations: 397.3 kB / 299.1 MB, free: 40 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.01215, allocations: 8.922 kB / 299.1 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.0122, allocations: 4.938 kB / 299.1 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.966e-05/0.0123, allocations: 105.8 kB / 299.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.01232, allocations: 384 / 299.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.01233, allocations: 4.312 kB / 299.2 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.368e-05/0.01243, allocations: 55.97 kB / 299.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.01243, allocations: 192 / 299.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.01244, allocations: 384 / 299.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.01245, allocations: 3.938 kB / 299.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.147e-05/0.01247, allocations: 37.69 kB / 299.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.922e-05/0.01255, allocations: 61.05 kB / 299.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.972e-05/0.0126, allocations: 40.28 kB / 299.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.185e-05/0.01262, allocations: 38.59 kB / 299.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-06/0.01263, allocations: 0 / 299.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.01267, allocations: 60.27 kB / 299.5 MB, free: 15.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.01268, allocations: 0 / 299.5 MB, free: 15.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.01282, allocations: 114.8 kB / 299.6 MB, free: 15.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.01289, allocations: 154.2 kB / 299.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.878e-05/0.01293, allocations: 97.98 kB / 299.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.01294, allocations: 25.7 kB / 299.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.01297, allocations: 84.08 kB / 300 MB, free: 14.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.01299, allocations: 0.6875 kB / 300 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.01303, allocations: 21.69 kB / 300 MB, free: 14.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.01313, allocations: 314.8 kB / 300.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.279e-05/0.01315, allocations: 29.64 kB / 300.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.01316, allocations: 29.7 kB / 300.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.01322, allocations: 64.27 kB / 300.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01322, allocations: 64 / 300.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.014e-05/0.0133, allocations: 89.09 kB / 300.5 MB, free: 14.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.01335, allocations: 33.7 kB / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01335, allocations: 0 / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.01336, allocations: 0 / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.973e-06/0.01337, allocations: 0 / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.01337, allocations: 0 / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.01339, allocations: 0 / 300.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.0134, allocations: 7.938 kB / 300.6 MB, free: 14.34 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 8.021e-05/0.01348, allocations: 139.5 kB / 300.7 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.01349, allocations: 8.031 kB / 300.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.04e-05/0.0135, allocations: 3 kB / 300.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.0135, allocations: 3.984 kB / 300.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.0135, allocations: 0 / 300.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.01351, allocations: 0 / 300.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.886e-05/0.01358, allocations: 65.84 kB / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.01358, allocations: 0 / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.01358, allocations: 0 / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-06/0.01359, allocations: 7.922 kB / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01359, allocations: 0 / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-06/0.01359, allocations: 0 / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.01359, allocations: 0 / 300.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01359, allocations: 8 kB / 300.8 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.0137, allocations: 112.5 kB / 300.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.01371, allocations: 4 kB / 300.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.01372, allocations: 4 kB / 300.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.01373, allocations: 3.938 kB / 300.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.01374, allocations: 4 kB / 300.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.045e-06/0.01375, allocations: 4.859 kB / 300.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01375, allocations: 3.938 kB / 300.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.01422, allocations: 159.4 kB / 301.1 MB, free: 13.75 MB / 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.000915/0.01513, allocations: 386.9 kB / 301.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001305/0.01526, allocations: 115.7 kB / 301.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.01527, allocations: 4 kB / 301.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.03e-05/0.01532, allocations: 89.95 kB / 301.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.384e-05/0.01539, allocations: 16.06 kB / 301.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002275/0.01562, allocations: 116 kB / 301.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.687e-05/0.01566, allocations: 51.36 kB / 301.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.973e-06/0.01567, allocations: 0 / 301.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.01571, allocations: 51.38 kB / 301.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01571, allocations: 0 / 301.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of Templates: time 0.01158/0.02729, allocations: 4.257 MB / 306.2 MB, free: 8.602 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0392369087785482]