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.001739/0.001739, allocations: 71.84 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002104/0.002104, allocations: 158.7 kB / 24.5 MB, free: 3.715 MB / 14.72 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.522/1.522, allocations: 177.2 MB / 204.9 MB, free: 9.008 MB / 190.1 MB " [Timeout remaining time 178] 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.2059/0.2059, allocations: 32.8 MB / 294.1 MB, free: 32 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 63.91 kB / 440.6 MB, free: 9.457 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3175, allocations: 65.44 MB / 0.4941 GB, free: 31.37 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001376/0.3188, allocations: 0.5061 MB / 0.4946 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.3216, allocations: 2.237 MB / 0.4968 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.3216, allocations: 0 / 0.4968 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.3217, allocations: 0 / 0.4968 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.602e-06/0.3217, allocations: 3.938 kB / 0.4968 GB, free: 29.57 MB / 446.1 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.00127/0.3229, allocations: 0.5777 MB / 0.4974 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.79e-05/0.323, allocations: 0 / 0.4974 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.045e-05/0.323, allocations: 3.094 kB / 0.4974 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.216e-05/0.323, allocations: 0 / 0.4974 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.698e-05/0.323, allocations: 3.938 kB / 0.4974 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.3231, allocations: 3.984 kB / 0.4974 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009043/0.324, allocations: 0.6858 MB / 0.4981 GB, free: 29.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-06/0.324, allocations: 0 / 0.4981 GB, free: 29.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.324, allocations: 4 kB / 0.4981 GB, free: 29.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.3245, allocations: 439.3 kB / 0.4985 GB, free: 29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3245, allocations: 3.469 kB / 0.4985 GB, free: 29 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3245, allocations: 0 / 0.4985 GB, free: 29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.3245, allocations: 3.281 kB / 0.4985 GB, free: 29 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.0003504/0.3249, allocations: 374.1 kB / 0.4989 GB, free: 28.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.3249, allocations: 9.188 kB / 0.4989 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3249, allocations: 0.9375 kB / 0.4989 GB, free: 28.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.369e-05/0.325, allocations: 105.9 kB / 0.499 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.325, allocations: 384 / 0.499 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.325, allocations: 384 / 0.499 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.786e-05/0.3251, allocations: 62.47 kB / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3251, allocations: 0 / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.3251, allocations: 0 / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.3251, allocations: 3.156 kB / 0.499 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.104e-05/0.3251, allocations: 33.7 kB / 0.4991 GB, free: 28.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.747e-05/0.3252, allocations: 96.42 kB / 0.4992 GB, free: 28.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.122e-05/0.3252, allocations: 47.47 kB / 0.4992 GB, free: 28.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.497e-05/0.3252, allocations: 30.56 kB / 0.4992 GB, free: 28.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.3252, allocations: 3.375 kB / 0.4992 GB, free: 28.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.3253, allocations: 63.55 kB / 0.4993 GB, free: 28.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3253, allocations: 0 / 0.4993 GB, free: 28.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000142/0.3254, allocations: 116.5 kB / 0.4994 GB, free: 27.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.3254, allocations: 84.23 kB / 0.4995 GB, free: 27.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.88e-05/0.3254, allocations: 93.81 kB / 0.4996 GB, free: 27.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.921e-06/0.3255, allocations: 29.83 kB / 0.4996 GB, free: 27.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.097e-05/0.3255, allocations: 84.14 kB / 0.4997 GB, free: 27.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.3255, allocations: 4 kB / 0.4997 GB, free: 27.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.3255, allocations: 12.94 kB / 0.4997 GB, free: 27.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.628e-05/0.3255, allocations: 314.1 kB / 0.5 GB, free: 27.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.268e-05/0.3256, allocations: 25.7 kB / 0.5 GB, free: 27.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.688e-06/0.3256, allocations: 29.12 kB / 0.5001 GB, free: 27.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.891e-05/0.3256, allocations: 67.58 kB / 0.5001 GB, free: 27.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3256, allocations: 3.219 kB / 0.5001 GB, free: 27.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.127e-05/0.3256, allocations: 90.78 kB / 0.5002 GB, free: 27.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3257, allocations: 38.27 kB / 0.5002 GB, free: 27.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3257, allocations: 0 / 0.5002 GB, free: 27.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3257, allocations: 3.938 kB / 0.5002 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.3257, allocations: 3.938 kB / 0.5003 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.426e-06/0.3257, allocations: 3.938 kB / 0.5003 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.363e-05/0.3257, allocations: 3.219 kB / 0.5003 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.3257, allocations: 0 / 0.5003 GB, free: 27.05 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 4.401e-05/0.3257, allocations: 139 kB / 0.5004 GB, free: 26.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-06/0.3258, allocations: 7.984 kB / 0.5004 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-06/0.3258, allocations: 10.97 kB / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-06/0.3258, allocations: 0 / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3258, allocations: 0 / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.3258, allocations: 0 / 0.5004 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.494e-05/0.3258, allocations: 96.42 kB / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3258, allocations: 0 / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3258, allocations: 0 / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.21e-07/0.3258, allocations: 0 / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.3258, allocations: 6.578 kB / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3258, allocations: 3.938 kB / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3258, allocations: 0 / 0.5005 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.966e-05/0.3259, allocations: 128.8 kB / 0.5006 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-06/0.3259, allocations: 0 / 0.5006 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.3259, allocations: 3.188 kB / 0.5006 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.3259, allocations: 3.938 kB / 0.5006 GB, free: 26.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.3259, allocations: 0 / 0.5006 GB, free: 26.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3259, allocations: 0 / 0.5006 GB, free: 26.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.008e-05/0.3259, allocations: 75.28 kB / 0.5007 GB, free: 26.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3259, allocations: 3.031 kB / 0.5007 GB, free: 26.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003442/0.3263, allocations: 158 kB / 0.5009 GB, free: 26.5 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.0006047/0.3269, allocations: 351.1 kB / 0.5012 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.427e-05/0.327, allocations: 116.3 kB / 0.5013 GB, free: 26.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.327, allocations: 0 / 0.5013 GB, free: 26.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-05/0.327, allocations: 80.05 kB / 0.5014 GB, free: 26.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.3271, allocations: 9.312 kB / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001442/0.3273, allocations: 125 kB / 0.5015 GB, free: 25.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.282e-05/0.3273, allocations: 51.36 kB / 0.5016 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.609e-06/0.3273, allocations: 2.969 kB / 0.5016 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.879e-06/0.3273, allocations: 8.5 kB / 0.5016 GB, free: 25.87 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3273, allocations: 0 / 0.5016 GB, free: 25.87 MB / 446.1 MB Notification: Performance of Templates: time 0.006074/0.3334, allocations: 3.627 MB / 0.5051 GB, free: 25.53 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 5.021227169083431]