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.001437/0.001436, allocations: 114.6 kB / 17.04 MB, free: 6.129 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.001683/0.001683, allocations: 192.6 kB / 17.98 MB, free: 5.227 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.46/1.46, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2078/0.2078, allocations: 43.51 MB / 314.7 MB, free: 488 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.001655/0.001655, allocations: 69.47 kB / 442.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1299, allocations: 57.79 MB / 0.4885 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001795/0.1318, allocations: 0.5058 MB / 0.489 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004338/0.1361, allocations: 2.332 MB / 0.4912 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.057e-05/0.1362, allocations: 0 / 0.4912 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.955e-05/0.1362, allocations: 0 / 0.4912 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.513e-06/0.1362, allocations: 4 kB / 0.4913 GB, free: 9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.1385, allocations: 0.5725 MB / 0.4918 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.86e-05/0.1385, allocations: 0 / 0.4918 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.704e-05/0.1386, allocations: 4 kB / 0.4918 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.016e-05/0.1386, allocations: 0 / 0.4918 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.254e-05/0.1387, allocations: 0 / 0.4918 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.1387, allocations: 0 / 0.4918 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.1404, allocations: 0.6902 MB / 0.4925 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.1404, allocations: 3.984 kB / 0.4925 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.1405, allocations: 8 kB / 0.4925 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.1416, allocations: 443.1 kB / 0.4929 GB, free: 7.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1416, allocations: 0 / 0.4929 GB, free: 7.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1416, allocations: 4 kB / 0.4929 GB, free: 7.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1417, allocations: 0 / 0.4929 GB, free: 7.281 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.0007213/0.1424, allocations: 433.2 kB / 0.4933 GB, free: 6.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.1425, allocations: 15.89 kB / 0.4934 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.1425, allocations: 4.844 kB / 0.4934 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.1426, allocations: 168.3 kB / 0.4935 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.1427, allocations: 384 / 0.4935 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.1427, allocations: 384 / 0.4935 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.1428, allocations: 41.94 kB / 0.4936 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1428, allocations: 4 kB / 0.4936 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1429, allocations: 0 / 0.4936 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1429, allocations: 3.984 kB / 0.4936 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.624e-05/0.1429, allocations: 7.938 kB / 0.4936 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.1431, allocations: 141.7 kB / 0.4937 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.412e-05/0.1432, allocations: 18.58 kB / 0.4937 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.047e-05/0.1432, allocations: 8.953 kB / 0.4937 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.1432, allocations: 0 / 0.4937 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/0.1433, allocations: 68.19 kB / 0.4938 GB, free: 6.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.282e-06/0.1433, allocations: 0 / 0.4938 GB, free: 6.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002418/0.1435, allocations: 63.34 kB / 0.4939 GB, free: 6.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/0.1436, allocations: 77.11 kB / 0.4939 GB, free: 6.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.689e-05/0.1437, allocations: 93.86 kB / 0.494 GB, free: 5.941 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1437, allocations: 29.7 kB / 0.4941 GB, free: 5.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.1438, allocations: 84.12 kB / 0.4941 GB, free: 5.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.1438, allocations: 4.125 kB / 0.4941 GB, free: 5.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.1438, allocations: 9.719 kB / 0.4941 GB, free: 5.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.144, allocations: 314.8 kB / 0.4944 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.236e-05/0.144, allocations: 0 / 0.4944 GB, free: 5.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.144, allocations: 0 / 0.4944 GB, free: 5.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.839e-05/0.1441, allocations: 64.27 kB / 0.4945 GB, free: 5.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1441, allocations: 0 / 0.4945 GB, free: 5.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001009/0.1442, allocations: 67.39 kB / 0.4946 GB, free: 5.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.1443, allocations: 37.67 kB / 0.4946 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1443, allocations: 0 / 0.4946 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1443, allocations: 0 / 0.4946 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.426e-06/0.1443, allocations: 4 kB / 0.4946 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.1444, allocations: 4 kB / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.123e-05/0.1444, allocations: 0 / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.1444, allocations: 0 / 0.4946 GB, free: 5.277 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 0.0001108/0.1445, allocations: 143.5 kB / 0.4948 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.1445, allocations: 3.938 kB / 0.4948 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.642e-05/0.1446, allocations: 11.06 kB / 0.4948 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1446, allocations: 0 / 0.4948 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1446, allocations: 0 / 0.4948 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.1446, allocations: 0 / 0.4948 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.1447, allocations: 149.7 kB / 0.4949 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1447, allocations: 0 / 0.4949 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-06/0.1448, allocations: 3.984 kB / 0.4949 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1448, allocations: 3.938 kB / 0.4949 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.1448, allocations: 0 / 0.4949 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1448, allocations: 3.938 kB / 0.4949 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1448, allocations: 0 / 0.4949 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001291/0.1449, allocations: 94.78 kB / 0.495 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.145, allocations: 81.09 kB / 0.4951 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.145, allocations: 7.938 kB / 0.4951 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.244e-05/0.145, allocations: 0 / 0.4951 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/0.1451, allocations: 0 / 0.4951 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.1451, allocations: 0 / 0.4951 GB, free: 4.672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.691e-05/0.1451, allocations: 79.31 kB / 0.4952 GB, free: 4.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1451, allocations: 0 / 0.4952 GB, free: 4.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006822/0.1458, allocations: 156 kB / 0.4953 GB, free: 4.441 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.001081/0.1469, allocations: 341.4 kB / 0.4956 GB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.147, allocations: 59.41 kB / 0.4957 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1471, allocations: 4.062 kB / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.207e-05/0.1471, allocations: 63.33 kB / 0.4958 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.1473, allocations: 3.438 kB / 0.4958 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.1476, allocations: 114.6 kB / 0.4959 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.1479, allocations: 0.669 MB / 0.4965 GB, free: 3.113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.58e-05/0.1479, allocations: 7.438 kB / 0.4965 GB, free: 3.105 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1479, allocations: 0 / 0.4965 GB, free: 3.105 MB / 382.1 MB Notification: Performance of Templates: time 0.008791/0.1567, allocations: 3.296 MB / 0.4998 GB, free: 15.8 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