Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 118.1 kB / 17.08 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001418, allocations: 196.2 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2067/0.2067, allocations: 43.52 MB / 314.8 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001576, allocations: 77.39 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1122, allocations: 57.78 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001721/0.1139, allocations: 0.5058 MB / 0.489 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00337/0.1173, allocations: 2.336 MB / 0.4913 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.1174, allocations: 0 / 0.4913 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.885e-05/0.1174, allocations: 0 / 0.4913 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-06/0.1174, allocations: 0 / 0.4913 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.1192, allocations: 0.5686 MB / 0.4919 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.854e-05/0.1192, allocations: 0 / 0.4919 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.728e-05/0.1193, allocations: 8 kB / 0.4919 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.697e-05/0.1193, allocations: 0 / 0.4919 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.161e-05/0.1193, allocations: 7.984 kB / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.1193, allocations: 0 / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.1208, allocations: 0.6863 MB / 0.4925 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.1208, allocations: 0 / 0.4925 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.104e-05/0.1208, allocations: 7.984 kB / 0.4926 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.1219, allocations: 447.1 kB / 0.493 GB, free: 7.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1219, allocations: 0 / 0.493 GB, free: 7.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1219, allocations: 0 / 0.493 GB, free: 7.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.1219, allocations: 0 / 0.493 GB, free: 7.215 MB / 382.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.0006275/0.1225, allocations: 433.2 kB / 0.4934 GB, free: 6.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1226, allocations: 15.89 kB / 0.4934 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.1226, allocations: 8.781 kB / 0.4934 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.767e-05/0.1227, allocations: 160.4 kB / 0.4936 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1228, allocations: 384 / 0.4936 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.1228, allocations: 4.375 kB / 0.4936 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.188e-05/0.1229, allocations: 38 kB / 0.4936 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1229, allocations: 0 / 0.4936 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.1229, allocations: 0 / 0.4936 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1229, allocations: 0 / 0.4936 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.297e-05/0.123, allocations: 4 kB / 0.4936 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.1231, allocations: 149.6 kB / 0.4938 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.17e-05/0.1232, allocations: 22.52 kB / 0.4938 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.35e-05/0.1232, allocations: 8.953 kB / 0.4938 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.1232, allocations: 0 / 0.4938 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.1232, allocations: 64.19 kB / 0.4939 GB, free: 6.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1232, allocations: 0 / 0.4939 GB, free: 6.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001864/0.1234, allocations: 67.34 kB / 0.4939 GB, free: 6.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.1235, allocations: 77.11 kB / 0.494 GB, free: 5.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.707e-05/0.1235, allocations: 93.86 kB / 0.4941 GB, free: 5.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.1236, allocations: 29.83 kB / 0.4941 GB, free: 5.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.122e-05/0.1236, allocations: 84.12 kB / 0.4942 GB, free: 5.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.1236, allocations: 0 / 0.4942 GB, free: 5.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.1236, allocations: 13.72 kB / 0.4942 GB, free: 5.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1238, allocations: 314.8 kB / 0.4945 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.1238, allocations: 0 / 0.4945 GB, free: 5.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-06/0.1238, allocations: 0 / 0.4945 GB, free: 5.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.131e-05/0.1238, allocations: 64.33 kB / 0.4946 GB, free: 5.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1239, allocations: 0 / 0.4946 GB, free: 5.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.352e-05/0.1239, allocations: 75.31 kB / 0.4946 GB, free: 5.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.124, allocations: 33.64 kB / 0.4947 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.124, allocations: 0 / 0.4947 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.124, allocations: 0 / 0.4947 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.124, allocations: 4 kB / 0.4947 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.124, allocations: 7.984 kB / 0.4947 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.671e-05/0.124, allocations: 0 / 0.4947 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.1241, allocations: 0 / 0.4947 GB, free: 5.207 MB / 382.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 9.487e-05/0.1242, allocations: 147.5 kB / 0.4948 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.1242, allocations: 7.875 kB / 0.4948 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.1242, allocations: 3.125 kB / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1242, allocations: 0 / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1242, allocations: 0 / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1242, allocations: 0 / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.036e-05/0.1243, allocations: 149.7 kB / 0.495 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1243, allocations: 0 / 0.495 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-06/0.1243, allocations: 3.984 kB / 0.495 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.319e-06/0.1243, allocations: 3.938 kB / 0.495 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.1243, allocations: 4 kB / 0.495 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1243, allocations: 0 / 0.495 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1243, allocations: 0 / 0.495 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.96e-05/0.1244, allocations: 90.78 kB / 0.4951 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.1245, allocations: 81.09 kB / 0.4951 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.1245, allocations: 11.94 kB / 0.4952 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.1245, allocations: 0 / 0.4952 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.1245, allocations: 7.969 kB / 0.4952 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1246, allocations: 0 / 0.4952 GB, free: 4.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.462e-05/0.1246, allocations: 75.28 kB / 0.4952 GB, free: 4.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1246, allocations: 0 / 0.4952 GB, free: 4.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.1251, allocations: 156 kB / 0.4954 GB, free: 4.367 MB / 382.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.0007841/0.1259, allocations: 340.2 kB / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.755e-05/0.126, allocations: 55.41 kB / 0.4958 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.126, allocations: 0 / 0.4958 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.126, allocations: 67.33 kB / 0.4958 GB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.1262, allocations: 7.438 kB / 0.4958 GB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001951/0.1264, allocations: 102.6 kB / 0.4959 GB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.1266, allocations: 0.6729 MB / 0.4966 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.1266, allocations: 11.55 kB / 0.4966 GB, free: 3.035 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1266, allocations: 4 kB / 0.4966 GB, free: 3.031 MB / 382.1 MB Notification: Performance of Templates: time 0.006155/0.1328, allocations: 3.284 MB / 0.4998 GB, free: 15.74 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches