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.001069/0.001069, allocations: 103.5 kB / 17.04 MB, free: 6.031 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.001087/0.001087, allocations: 194.8 kB / 17.97 MB, free: 5.113 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.438/1.438, allocations: 205.1 MB / 223.8 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.2048/0.2048, allocations: 43.51 MB / 314.7 MB, free: 472 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.001485/0.001485, allocations: 67.16 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1203, allocations: 57.79 MB / 442 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001752/0.1221, allocations: 0.4932 MB / 442.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.1245, allocations: 2.328 MB / 444.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.1245, allocations: 4 kB / 444.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.304e-05/0.1245, allocations: 4 kB / 444.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.669e-06/0.1245, allocations: 0 / 444.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.1259, allocations: 0.5631 MB / 445.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.373e-05/0.126, allocations: 4 kB / 445.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.776e-05/0.126, allocations: 0 / 445.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.049e-05/0.1261, allocations: 3.984 kB / 445.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.129e-05/0.1261, allocations: 0 / 445.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-06/0.1261, allocations: 0 / 445.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009152/0.127, allocations: 0.6942 MB / 446.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.094e-06/0.127, allocations: 0 / 446.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.1271, allocations: 3.984 kB / 446.1 MB, free: 2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005339/0.1276, allocations: 451.1 kB / 446.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1276, allocations: 0 / 446.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1276, allocations: 4 kB / 446.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1277, allocations: 0 / 446.5 MB, free: 1.555 MB / 318.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.0003695/0.128, allocations: 437.2 kB / 446.9 MB, free: 1.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1281, allocations: 15.83 kB / 447 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/0.1281, allocations: 0.9375 kB / 447 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.292e-05/0.1282, allocations: 160.4 kB / 447.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1282, allocations: 384 / 447.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-06/0.1282, allocations: 4.375 kB / 447.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.132e-05/0.1283, allocations: 38 kB / 447.2 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1283, allocations: 3.938 kB / 447.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.1284, allocations: 4 kB / 447.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1284, allocations: 0 / 447.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.958e-05/0.1284, allocations: 3.938 kB / 447.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.872e-05/0.1285, allocations: 149.7 kB / 447.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.345e-05/0.1285, allocations: 18.61 kB / 447.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.213e-05/0.1285, allocations: 4.859 kB / 447.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-06/0.1286, allocations: 4 kB / 447.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.1286, allocations: 68.25 kB / 447.4 MB, free: 500 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1286, allocations: 0 / 447.4 MB, free: 500 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001817/0.1288, allocations: 67.34 kB / 447.5 MB, free: 420 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.1288, allocations: 77.11 kB / 447.6 MB, free: 324 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.728e-05/0.1289, allocations: 89.86 kB / 447.6 MB, free: 224 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.1289, allocations: 25.7 kB / 447.7 MB, free: 192 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.736e-05/0.1289, allocations: 80.27 kB / 447.7 MB, free: 108 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.1289, allocations: 7.938 kB / 447.8 MB, free: 100 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/0.129, allocations: 17.7 kB / 447.8 MB, free: 76 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1291, allocations: 314.8 kB / 448.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.1291, allocations: 0 / 448.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.1291, allocations: 16 / 448.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.988e-05/0.1292, allocations: 60.27 kB / 448.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1292, allocations: 0 / 448.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.731e-05/0.1293, allocations: 71.39 kB / 448.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.1293, allocations: 37.64 kB / 448.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1293, allocations: 0 / 448.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1293, allocations: 0 / 448.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1294, allocations: 0 / 448.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1294, allocations: 0 / 448.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.1294, allocations: 4 kB / 448.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.1294, allocations: 0 / 448.2 MB, free: 15.55 MB / 334.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 8.702e-05/0.1295, allocations: 143.4 kB / 448.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.11e-05/0.1295, allocations: 11.95 kB / 448.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.196e-05/0.1295, allocations: 3.125 kB / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1295, allocations: 0 / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1295, allocations: 4 kB / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1296, allocations: 0 / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.1297, allocations: 145.7 kB / 448.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1297, allocations: 0 / 448.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1297, allocations: 0 / 448.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1297, allocations: 3.938 kB / 448.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1297, allocations: 7.984 kB / 448.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1297, allocations: 0 / 448.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1297, allocations: 7.938 kB / 448.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1298, allocations: 94.8 kB / 448.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.1299, allocations: 81.09 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.1299, allocations: 3.938 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.1299, allocations: 0 / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-06/0.1299, allocations: 0 / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.13, allocations: 12 kB / 448.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.963e-05/0.13, allocations: 79.31 kB / 448.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.13, allocations: 0 / 448.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.1304, allocations: 148 kB / 449 MB, free: 14.71 MB / 334.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.0007051/0.1311, allocations: 346.7 kB / 449.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001418/0.1313, allocations: 59.41 kB / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1313, allocations: 0 / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.526e-05/0.1313, allocations: 67.33 kB / 449.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1315, allocations: 5.203 kB / 449.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001772/0.1316, allocations: 69.08 kB / 449.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.132, allocations: 0.6728 MB / 450.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.132, allocations: 0 / 450.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/0.132, allocations: 11.44 kB / 450.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.132, allocations: 0 / 450.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of Templates: time 0.006994/0.139, allocations: 3.508 MB / 453.7 MB, free: 9.914 MB / 334.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 -s gbode -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