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.001967/0.001967, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.002378/0.002378, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 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.504/1.504, allocations: 177.1 MB / 204.7 MB, free: 8.938 MB / 190.1 MB " [Timeout remaining time 178] 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.2096/0.2096, allocations: 34.26 MB / 295.4 MB, free: 14.45 MB / 286.1 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 0.002396/0.002396, allocations: 79.88 kB / 443.1 MB, free: 6.465 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2943, allocations: 66.06 MB / 0.4973 GB, free: 29.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001435/0.2957, allocations: 0.5108 MB / 0.4978 GB, free: 29.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.298, allocations: 2.236 MB / 0.4999 GB, free: 27.97 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.263e-05/0.298, allocations: 4 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.298, allocations: 0 / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.298, allocations: 0 / 0.4999 GB, free: 27.96 MB / 446.1 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.00121/0.2993, allocations: 0.5786 MB / 0.5005 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.854e-05/0.2993, allocations: 0 / 0.5005 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.948e-05/0.2993, allocations: 7.312 kB / 0.5005 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.25e-05/0.2993, allocations: 3.516 kB / 0.5005 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.691e-05/0.2994, allocations: 7.938 kB / 0.5005 GB, free: 27.72 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.2994, allocations: 0 / 0.5005 GB, free: 27.72 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008928/0.3003, allocations: 0.6762 MB / 0.5012 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.554e-06/0.3003, allocations: 0 / 0.5012 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.578e-05/0.3003, allocations: 0 / 0.5012 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004836/0.3008, allocations: 451.4 kB / 0.5016 GB, free: 27.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3008, allocations: 0 / 0.5016 GB, free: 27.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3008, allocations: 0 / 0.5016 GB, free: 27.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3008, allocations: 0 / 0.5016 GB, free: 27.39 MB / 446.1 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.0002887/0.3011, allocations: 368.5 kB / 0.502 GB, free: 27.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.761e-05/0.3011, allocations: 9.719 kB / 0.502 GB, free: 27.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.007e-05/0.3011, allocations: 0.9375 kB / 0.502 GB, free: 27.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.495e-05/0.3012, allocations: 109.2 kB / 0.5021 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3012, allocations: 384 / 0.5021 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.3012, allocations: 384 / 0.5021 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.903e-05/0.3013, allocations: 62.75 kB / 0.5021 GB, free: 26.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.3013, allocations: 0 / 0.5021 GB, free: 26.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.3013, allocations: 0 / 0.5021 GB, free: 26.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.3013, allocations: 3.938 kB / 0.5022 GB, free: 26.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.3013, allocations: 40.19 kB / 0.5022 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.289e-05/0.3014, allocations: 96.73 kB / 0.5023 GB, free: 26.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.882e-05/0.3014, allocations: 40.28 kB / 0.5023 GB, free: 26.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.524e-05/0.3014, allocations: 33.94 kB / 0.5024 GB, free: 26.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-06/0.3014, allocations: 0 / 0.5024 GB, free: 26.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.3015, allocations: 60.27 kB / 0.5024 GB, free: 26.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.3015, allocations: 4 kB / 0.5024 GB, free: 26.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001332/0.3016, allocations: 123.5 kB / 0.5025 GB, free: 26.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.3016, allocations: 80.3 kB / 0.5026 GB, free: 26.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.667e-05/0.3016, allocations: 97.38 kB / 0.5027 GB, free: 26.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-06/0.3016, allocations: 29.7 kB / 0.5027 GB, free: 26.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.817e-06/0.3016, allocations: 84.14 kB / 0.5028 GB, free: 26.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3017, allocations: 0 / 0.5028 GB, free: 26.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.072e-05/0.3017, allocations: 13.09 kB / 0.5028 GB, free: 26.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.29e-05/0.3017, allocations: 310.8 kB / 0.5031 GB, free: 25.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.3017, allocations: 28.86 kB / 0.5031 GB, free: 25.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.287e-06/0.3017, allocations: 29.83 kB / 0.5032 GB, free: 25.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.672e-05/0.3018, allocations: 66.83 kB / 0.5032 GB, free: 25.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3018, allocations: 3.938 kB / 0.5032 GB, free: 25.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.081e-05/0.3018, allocations: 86.27 kB / 0.5033 GB, free: 25.49 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.3018, allocations: 31.36 kB / 0.5034 GB, free: 25.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3018, allocations: 7.922 kB / 0.5034 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3019, allocations: 7.172 kB / 0.5034 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.3019, allocations: 0 / 0.5034 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.3019, allocations: 0 / 0.5034 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.336e-05/0.3019, allocations: 7.219 kB / 0.5034 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.3019, allocations: 4.094 kB / 0.5034 GB, free: 25.44 MB / 446.1 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 3.944e-05/0.3019, allocations: 138.4 kB / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-06/0.3019, allocations: 0 / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-06/0.3019, allocations: 6.938 kB / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3019, allocations: 3.469 kB / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.3019, allocations: 2.812 kB / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-06/0.3019, allocations: 0 / 0.5035 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.198e-05/0.302, allocations: 93.33 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.302, allocations: 2.906 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.302, allocations: 3.938 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.302, allocations: 4 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-06/0.302, allocations: 0 / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.302, allocations: 3.938 kB / 0.5036 GB, free: 25.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.302, allocations: 3.938 kB / 0.5036 GB, free: 25.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.753e-05/0.302, allocations: 124.2 kB / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-06/0.302, allocations: 6.516 kB / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-06/0.3021, allocations: 0 / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.3021, allocations: 3.938 kB / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.3021, allocations: 2.656 kB / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3021, allocations: 0 / 0.5038 GB, free: 25.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.057e-05/0.3021, allocations: 79.31 kB / 0.5038 GB, free: 24.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3021, allocations: 0 / 0.5038 GB, free: 24.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.3024, allocations: 165.5 kB / 0.504 GB, free: 24.88 MB / 446.1 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.0005897/0.303, allocations: 341.9 kB / 0.5043 GB, free: 24.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.014e-05/0.3031, allocations: 121.1 kB / 0.5044 GB, free: 24.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3031, allocations: 0 / 0.5044 GB, free: 24.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.167e-05/0.3031, allocations: 87.91 kB / 0.5045 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.3033, allocations: 3.938 kB / 0.5045 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001323/0.3034, allocations: 113.6 kB / 0.5046 GB, free: 24.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.131e-05/0.3034, allocations: 57.55 kB / 0.5047 GB, free: 24.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.749e-06/0.3034, allocations: 0 / 0.5047 GB, free: 24.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.237e-06/0.3034, allocations: 11.69 kB / 0.5047 GB, free: 24.26 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3034, allocations: 0 / 0.5047 GB, free: 24.26 MB / 446.1 MB Notification: Performance of Templates: time 0.006129/0.3096, allocations: 3.6 MB / 0.5082 GB, free: 23.94 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.993840940995142]