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.0009456/0.0009456, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001329/0.002274, allocations: 449.7 kB / 10.37 MB, free: 324 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.0009404/0.0009404, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001037/0.001977, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 0.98/0.98, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09099/1.071, allocations: 53.87 MB / 243.7 MB, free: 14.9 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.276/0.276, allocations: 34.86 MB / 279.4 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02779/0.3038, allocations: 13.23 MB / 292.6 MB, free: 6.461 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.713e-06/1.713e-06, allocations: 0 / 293.9 MB, free: 5.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.615e-05, allocations: 3.516 kB / 293.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001715/0.001741, allocations: 0.5621 MB / 294.4 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003483/0.005224, allocations: 2.344 MB / 296.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.005244, allocations: 0 / 296.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.925e-06/0.005252, allocations: 0 / 296.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.976e-06/0.005255, allocations: 0 / 296.8 MB, free: 2.27 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.001991/0.007246, allocations: 0.5253 MB / 297.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.504e-05/0.007321, allocations: 7.984 kB / 297.3 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.007364, allocations: 7.984 kB / 297.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.737e-05/0.007422, allocations: 4 kB / 297.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.205e-05/0.007454, allocations: 0 / 297.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.077e-05/0.007465, allocations: 0 / 297.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.009359, allocations: 0.7368 MB / 298 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.009372, allocations: 0 / 298 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.009393, allocations: 0 / 298 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009511/0.01034, allocations: 450.8 kB / 298.5 MB, free: 0.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.847e-05/0.01036, allocations: 0 / 298.5 MB, free: 0.543 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.01036, allocations: 0 / 298.5 MB, free: 0.543 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.01038, allocations: 0 / 298.5 MB, free: 0.543 MB / 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.0006848/0.01107, allocations: 397.3 kB / 298.9 MB, free: 128 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.001e-05/0.01113, allocations: 11.44 kB / 298.9 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.01118, allocations: 0.9375 kB / 298.9 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.0113, allocations: 109.8 kB / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.01132, allocations: 4.375 kB / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.01133, allocations: 384 / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.01145, allocations: 59.91 kB / 299.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.01146, allocations: 192 / 299.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.01147, allocations: 384 / 299.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.01148, allocations: 3.938 kB / 299.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.773e-05/0.01152, allocations: 33.64 kB / 299.1 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.01166, allocations: 53.05 kB / 299.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.342e-05/0.01173, allocations: 44.31 kB / 299.2 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.674e-05/0.01176, allocations: 34.55 kB / 299.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-06/0.01177, allocations: 4 kB / 299.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/0.01182, allocations: 60.33 kB / 299.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.084e-06/0.01182, allocations: 0 / 299.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002108/0.01203, allocations: 122.7 kB / 299.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.0121, allocations: 81.09 kB / 299.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.882e-05/0.01215, allocations: 89.86 kB / 299.6 MB, free: 15.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.01217, allocations: 25.7 kB / 299.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.726e-05/0.0122, allocations: 80.14 kB / 299.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.01222, allocations: 0.6875 kB / 299.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.01226, allocations: 13.84 kB / 299.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.01237, allocations: 318.8 kB / 300 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.357e-05/0.0124, allocations: 29.7 kB / 300 MB, free: 14.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.777e-05/0.01242, allocations: 25.7 kB / 300.1 MB, free: 14.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.246e-05/0.01249, allocations: 64.25 kB / 300.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.01249, allocations: 0 / 300.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001024/0.0126, allocations: 89.05 kB / 300.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.226e-05/0.01266, allocations: 37.69 kB / 300.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.01267, allocations: 4 kB / 300.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.01268, allocations: 96 / 300.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.241e-06/0.01269, allocations: 4 kB / 300.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.01269, allocations: 4 kB / 300.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.502e-05/0.01272, allocations: 0 / 300.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.01273, allocations: 3.938 kB / 300.3 MB, free: 14.52 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 9.856e-05/0.01283, allocations: 139.5 kB / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.01284, allocations: 0 / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.334e-05/0.01285, allocations: 3 kB / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.01285, allocations: 0 / 300.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01286, allocations: 3.984 kB / 300.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01286, allocations: 0 / 300.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.194e-05/0.01293, allocations: 69.84 kB / 300.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01294, allocations: 0 / 300.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.483e-06/0.01294, allocations: 0 / 300.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-06/0.01295, allocations: 3.938 kB / 300.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.01295, allocations: 4 kB / 300.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.01295, allocations: 0 / 300.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.01295, allocations: 0 / 300.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01296, allocations: 0 / 300.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.01308, allocations: 116.4 kB / 300.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.01311, allocations: 4 kB / 300.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.01312, allocations: 7.969 kB / 300.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.01313, allocations: 0 / 300.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-06/0.01314, allocations: 0 / 300.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.36e-05/0.01315, allocations: 12.84 kB / 300.6 MB, free: 14.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01315, allocations: 4 kB / 300.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005716/0.01372, allocations: 155.4 kB / 300.8 MB, free: 13.94 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.0009994/0.01472, allocations: 386 kB / 301.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.01488, allocations: 123.6 kB / 301.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.01489, allocations: 0 / 301.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.86e-05/0.01494, allocations: 85.97 kB / 301.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.306e-05/0.01502, allocations: 11.92 kB / 301.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.01529, allocations: 110.8 kB / 301.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.247e-05/0.01533, allocations: 51.36 kB / 301.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.025e-05/0.01534, allocations: 3.984 kB / 301.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/0.01539, allocations: 63.42 kB / 301.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of SimCode: time 1.333e-06/0.01539, allocations: 0 / 301.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of Templates: time 0.007806/0.0232, allocations: 4.309 MB / 305.9 MB, free: 8.734 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.967991514131427]