Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007951/0.0007952, allocations: 94.48 kB / 16.33 MB, free: 5.945 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.0008828/0.0008829, allocations: 187.8 kB / 17.22 MB, free: 5.879 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.539/1.539, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.2242/0.2242, allocations: 43.57 MB / 315.2 MB, free: 0.5352 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.0005031/0.0005033, allocations: 13.09 kB / 384.6 MB, free: 57.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.102, allocations: 58.85 MB / 443.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006355/0.1027, allocations: 264.6 kB / 443.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007611/0.1035, allocations: 409.2 kB / 444.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.1035, allocations: 3.938 kB / 444.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.392e-05/0.1036, allocations: 7.938 kB / 444.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.1038, allocations: 11.97 kB / 444.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.1044, allocations: 150.2 kB / 444.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.1045, allocations: 63.86 kB / 444.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.913e-05/0.1046, allocations: 4 kB / 444.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.936e-05/0.1046, allocations: 39.95 kB / 444.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.579e-05/0.1047, allocations: 15.91 kB / 444.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.1047, allocations: 7.938 kB / 444.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1049, allocations: 91.84 kB / 444.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.105, allocations: 27.95 kB / 444.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.088e-05/0.105, allocations: 25.7 kB / 444.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1052, allocations: 83.86 kB / 444.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1052, allocations: 4 kB / 444.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1052, allocations: 0 / 444.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1053, allocations: 3.938 kB / 444.6 MB, free: 4.574 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004848/0.1057, allocations: 381.2 kB / 445 MB, free: 4.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1058, allocations: 12.02 kB / 445 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.1059, allocations: 11.89 kB / 445 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.106, allocations: 187 kB / 445.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.1061, allocations: 0 / 445.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.1061, allocations: 4 kB / 445.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.1063, allocations: 93.61 kB / 445.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1063, allocations: 0 / 445.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.1063, allocations: 4 kB / 445.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1063, allocations: 0 / 445.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.343e-05/0.1064, allocations: 27.92 kB / 445.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002008/0.1066, allocations: 165.5 kB / 445.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.725e-05/0.1067, allocations: 58.53 kB / 445.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.064e-05/0.1068, allocations: 16.92 kB / 445.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.1068, allocations: 4 kB / 445.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.107, allocations: 139.2 kB / 445.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.107, allocations: 0 / 445.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.000285/0.1073, allocations: 117.5 kB / 445.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.1074, allocations: 63.55 kB / 445.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.584e-05/0.1075, allocations: 97.84 kB / 445.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.1075, allocations: 33.7 kB / 446 MB, free: 2.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.791e-05/0.1075, allocations: 80.33 kB / 446.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.1076, allocations: 23.7 kB / 446.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.1076, allocations: 4.281 kB / 446.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.983e-05/0.1076, allocations: 322.8 kB / 446.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.179e-05/0.1077, allocations: 27.97 kB / 446.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.02e-05/0.1078, allocations: 73.05 kB / 446.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.05e-05/0.1078, allocations: 69.56 kB / 446.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1079, allocations: 0 / 446.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001908/0.1081, allocations: 159.1 kB / 446.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.1081, allocations: 29.7 kB / 446.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1081, allocations: 4 kB / 446.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1081, allocations: 8.219 kB / 446.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1083, allocations: 19.92 kB / 446.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1083, allocations: 4 kB / 446.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.858e-05/0.1083, allocations: 7.938 kB / 446.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.1083, allocations: 11.98 kB / 446.8 MB, free: 2.09 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001538/0.1085, allocations: 129.7 kB / 446.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.1085, allocations: 7.906 kB / 446.9 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.1086, allocations: 11.95 kB / 447 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1086, allocations: 0 / 447 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1086, allocations: 0 / 447 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1086, allocations: 0 / 447 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.1088, allocations: 173.6 kB / 447.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1088, allocations: 0 / 447.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.461e-05/0.1088, allocations: 7.984 kB / 447.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.1088, allocations: 0 / 447.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1088, allocations: 0 / 447.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1088, allocations: 4 kB / 447.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1088, allocations: 0 / 447.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/0.109, allocations: 140.9 kB / 447.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.697e-05/0.1091, allocations: 85.06 kB / 447.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.1091, allocations: 3.984 kB / 447.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.1093, allocations: 19.98 kB / 447.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.1093, allocations: 11.92 kB / 447.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1094, allocations: 16.06 kB / 447.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.691e-05/0.1094, allocations: 79.45 kB / 447.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1094, allocations: 0 / 447.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000294/0.1097, allocations: 40 kB / 447.5 MB, free: 1.273 MB / 318.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003842/0.1101, allocations: 180.6 kB / 447.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001997/0.1103, allocations: 127.3 kB / 447.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1103, allocations: 0 / 447.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.761e-05/0.1104, allocations: 27.92 kB / 447.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.1106, allocations: 11.98 kB / 447.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003685/0.1109, allocations: 172.8 kB / 448 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.1111, allocations: 0.6887 MB / 448.7 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.1112, allocations: 19.36 kB / 448.7 MB, free: 16 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1112, allocations: 0 / 448.7 MB, free: 16 MB / 334.1 MB Notification: Performance of Templates: time 0.005013/0.1162, allocations: 1.788 MB / 450.5 MB, free: 14.21 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegersCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o] Error 1