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.0007749/0.0007749, allocations: 96.58 kB / 16.33 MB, free: 5.949 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.0007725/0.0007724, allocations: 188.6 kB / 17.22 MB, free: 5.883 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.555/1.555, allocations: 205.4 MB / 223.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3481/0.3481, allocations: 43.56 MB / 315.2 MB, free: 8.855 MB / 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.0005209/0.0005212, allocations: 12 kB / 384.5 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1349, allocations: 58.86 MB / 443.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006096/0.1356, allocations: 232.4 kB / 443.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.1384, allocations: 2.209 MB / 445.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.1385, allocations: 8 kB / 445.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.147e-05/0.1385, allocations: 0 / 445.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.614e-06/0.1385, allocations: 3.938 kB / 445.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.1397, allocations: 470.9 kB / 446.3 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.948e-05/0.1397, allocations: 3.938 kB / 446.3 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.418e-05/0.1398, allocations: 0 / 446.3 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.859e-05/0.1398, allocations: 7.938 kB / 446.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.1398, allocations: 4 kB / 446.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-06/0.1398, allocations: 4 kB / 446.3 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.1409, allocations: 0.6863 MB / 447 MB, free: 9.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.1409, allocations: 7.938 kB / 447 MB, free: 9.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.141, allocations: 29.7 kB / 447.1 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.1414, allocations: 295.8 kB / 447.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1414, allocations: 0 / 447.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1414, allocations: 0 / 447.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.1414, allocations: 0 / 447.3 MB, free: 9.094 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.0004562/0.1419, allocations: 429 kB / 447.8 MB, free: 8.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1419, allocations: 16.02 kB / 447.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.142, allocations: 3.953 kB / 447.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1421, allocations: 163.1 kB / 447.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1421, allocations: 0 / 447.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.1421, allocations: 4 kB / 447.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.541e-05/0.1422, allocations: 25.7 kB / 448 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.1422, allocations: 0 / 448 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.1423, allocations: 0 / 448 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1423, allocations: 4 kB / 448 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.303e-05/0.1423, allocations: 7.891 kB / 448 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.1425, allocations: 153.6 kB / 448.1 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.628e-05/0.1425, allocations: 26.58 kB / 448.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.662e-05/0.1426, allocations: 4.859 kB / 448.2 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.1426, allocations: 0 / 448.2 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/0.1426, allocations: 56.27 kB / 448.2 MB, free: 8.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.905e-06/0.1426, allocations: 64 / 448.2 MB, free: 8.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001983/0.1428, allocations: 79.27 kB / 448.3 MB, free: 7.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.1429, allocations: 81.11 kB / 448.4 MB, free: 7.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.612e-05/0.143, allocations: 89.86 kB / 448.5 MB, free: 7.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.143, allocations: 25.7 kB / 448.5 MB, free: 7.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.885e-05/0.143, allocations: 80.14 kB / 448.6 MB, free: 7.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.1431, allocations: 3.984 kB / 448.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.1431, allocations: 0 / 448.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1432, allocations: 314.8 kB / 448.9 MB, free: 7.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.262e-05/0.1432, allocations: 8.125 kB / 448.9 MB, free: 7.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.169e-06/0.1432, allocations: 0 / 448.9 MB, free: 7.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.442e-05/0.1433, allocations: 29.7 kB / 448.9 MB, free: 7.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1433, allocations: 0 / 448.9 MB, free: 7.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.75e-05/0.1434, allocations: 67.33 kB / 449 MB, free: 7.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/0.1435, allocations: 37.64 kB / 449 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1435, allocations: 0 / 449 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1435, allocations: 0 / 449 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.1435, allocations: 0 / 449 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.1435, allocations: 0 / 449 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.1435, allocations: 8.094 kB / 449 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1436, allocations: 0 / 449 MB, free: 7.152 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.1437, allocations: 143.5 kB / 449.2 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.1437, allocations: 0 / 449.2 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.423e-05/0.1437, allocations: 7.125 kB / 449.2 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1437, allocations: 0 / 449.2 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1437, allocations: 4 kB / 449.2 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1437, allocations: 0 / 449.2 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.1439, allocations: 149.6 kB / 449.3 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1439, allocations: 4 kB / 449.3 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-06/0.1439, allocations: 3.984 kB / 449.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1439, allocations: 0 / 449.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1439, allocations: 4 kB / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1439, allocations: 0 / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1439, allocations: 0 / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.1441, allocations: 94.73 kB / 449.4 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.484e-05/0.1441, allocations: 81.09 kB / 449.5 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.1441, allocations: 4.031 kB / 449.5 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.1442, allocations: 3.938 kB / 449.5 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.1442, allocations: 0 / 449.5 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.1442, allocations: 4 kB / 449.5 MB, free: 6.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.1443, allocations: 75.28 kB / 449.6 MB, free: 6.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1443, allocations: 0 / 449.6 MB, free: 6.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000575/0.1449, allocations: 152 kB / 449.7 MB, free: 6.328 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009568/0.1459, allocations: 326.6 kB / 450.1 MB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.76e-05/0.146, allocations: 59.41 kB / 450.1 MB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.146, allocations: 0 / 450.1 MB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.229e-05/0.146, allocations: 63.33 kB / 450.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.1462, allocations: 7.953 kB / 450.2 MB, free: 5.852 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002191/0.1464, allocations: 108.5 kB / 450.3 MB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.1467, allocations: 0.6731 MB / 451 MB, free: 5.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.071e-05/0.1468, allocations: 11.44 kB / 451 MB, free: 5.008 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1468, allocations: 0 / 451 MB, free: 5.008 MB / 382.1 MB Notification: Performance of Templates: time 0.007365/0.1541, allocations: 3.292 MB / 454.3 MB, free: 1.711 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o] Error 1