Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001571/0.001571, allocations: 183.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.15/2.15, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001191/0.001191, allocations: 85.25 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5434/0.5434, allocations: 43.56 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000497/0.0004972, allocations: 12 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1385, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008273/0.1394, allocations: 276.2 kB / 490.6 MB, free: 10.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1405, allocations: 402.9 kB / 491 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.977e-05/0.1406, allocations: 7.875 kB / 491 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.188e-05/0.1407, allocations: 0 / 491 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.1408, allocations: 11.94 kB / 491 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007232/0.1416, allocations: 131.7 kB / 491.1 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.1418, allocations: 59.84 kB / 491.2 MB, free: 10.03 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.098e-05/0.1418, allocations: 0 / 491.2 MB, free: 10.03 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.1419, allocations: 43.95 kB / 491.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.691e-05/0.142, allocations: 19.91 kB / 491.2 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.858e-05/0.142, allocations: 4 kB / 491.2 MB, free: 9.965 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.1423, allocations: 71.86 kB / 491.3 MB, free: 9.895 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.431e-05/0.1424, allocations: 19.92 kB / 491.3 MB, free: 9.875 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.483e-05/0.1424, allocations: 29.7 kB / 491.4 MB, free: 9.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.1427, allocations: 87.84 kB / 491.5 MB, free: 9.754 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1427, allocations: 0 / 491.5 MB, free: 9.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1427, allocations: 0 / 491.5 MB, free: 9.754 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1427, allocations: 0 / 491.5 MB, free: 9.754 MB / 378.7 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.0006053/0.1433, allocations: 381 kB / 491.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.1434, allocations: 8.031 kB / 491.8 MB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.191e-05/0.1435, allocations: 42.55 kB / 491.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.639e-05/0.1435, allocations: 11.86 kB / 491.9 MB, free: 9.258 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.1438, allocations: 175.3 kB / 492.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1438, allocations: 0 / 492.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.1439, allocations: 11.94 kB / 492.1 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.1441, allocations: 89.62 kB / 492.2 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1442, allocations: 0 / 492.2 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.1442, allocations: 7.938 kB / 492.2 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1442, allocations: 0 / 492.2 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.1443, allocations: 19.98 kB / 492.2 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002572/0.1446, allocations: 177.5 kB / 492.4 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.1447, allocations: 42.56 kB / 492.4 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.1448, allocations: 7.938 kB / 492.4 MB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.1452, allocations: 123.4 kB / 492.5 MB, free: 8.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.585e-06/0.1452, allocations: 0 / 492.5 MB, free: 8.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004935/0.1457, allocations: 210.5 kB / 492.7 MB, free: 8.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1458, allocations: 51.41 kB / 492.8 MB, free: 8.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1459, allocations: 102 kB / 492.9 MB, free: 8.098 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.1459, allocations: 29.7 kB / 492.9 MB, free: 8.062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.146, allocations: 158.7 kB / 493.1 MB, free: 7.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/0.1461, allocations: 23.72 kB / 493.1 MB, free: 7.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.1461, allocations: 0 / 493.1 MB, free: 7.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1462, allocations: 326.8 kB / 493.4 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.1463, allocations: 19.98 kB / 493.4 MB, free: 7.531 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.1465, allocations: 74.78 kB / 493.5 MB, free: 7.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.1466, allocations: 69.69 kB / 493.6 MB, free: 7.359 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1467, allocations: 0 / 493.6 MB, free: 7.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003725/0.147, allocations: 167.2 kB / 493.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.1471, allocations: 29.7 kB / 493.8 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.1471, allocations: 7.938 kB / 493.8 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.1472, allocations: 4 kB / 493.8 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.1473, allocations: 19.92 kB / 493.8 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1474, allocations: 0 / 493.8 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.634e-05/0.1475, allocations: 4 kB / 493.8 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.1475, allocations: 12 kB / 493.8 MB, free: 7.102 MB / 378.7 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.0002329/0.1477, allocations: 141.6 kB / 493.9 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.1478, allocations: 8.094 kB / 494 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.928e-05/0.1478, allocations: 7.969 kB / 494 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1479, allocations: 3.984 kB / 494 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1479, allocations: 0 / 494 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1479, allocations: 3.938 kB / 494 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.1481, allocations: 173.6 kB / 494.1 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1481, allocations: 0 / 494.1 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.544e-05/0.1482, allocations: 4 kB / 494.1 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.1482, allocations: 7.984 kB / 494.1 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.1482, allocations: 4 kB / 494.2 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1483, allocations: 0 / 494.2 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1483, allocations: 4 kB / 494.2 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.1486, allocations: 141.1 kB / 494.3 MB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.1487, allocations: 81.05 kB / 494.4 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.1487, allocations: 4 kB / 494.4 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.1491, allocations: 31.97 kB / 494.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.1492, allocations: 3.984 kB / 494.4 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1492, allocations: 4 kB / 494.4 MB, free: 6.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.664e-05/0.1493, allocations: 83.28 kB / 494.5 MB, free: 6.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1493, allocations: 0 / 494.5 MB, free: 6.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004349/0.1497, allocations: 43.98 kB / 494.5 MB, free: 6.277 MB / 378.7 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.001144/0.1509, allocations: 0.7394 MB / 495.3 MB, free: 5.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003449/0.1513, allocations: 131.6 kB / 495.4 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1513, allocations: 3.938 kB / 495.4 MB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.861e-05/0.1514, allocations: 27.98 kB / 495.4 MB, free: 5.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.1516, allocations: 4 kB / 495.4 MB, free: 5.344 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.153, allocations: 1.475 MB / 496.9 MB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.1533, allocations: 0.6926 MB / 497.6 MB, free: 3.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.024e-05/0.1534, allocations: 19.42 kB / 497.6 MB, free: 3.047 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.1534, allocations: 0 / 497.6 MB, free: 3.047 MB / 378.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers.cpp:243:38: error: no matching member function for call to 'pre' add_array(_discrete_events->pre(_cnt_), /*t4*/tmp1, tmp5); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:32:16: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string& pre(const std::string& var); ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.o] Error 1