Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.Switch2_test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 104.4 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 220.5 kB / 23 MB, free: 4.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.04982/0.04982, allocations: 5.287 MB / 318.5 MB, free: 13.71 MB / 254.1 MB " [Timeout remaining time 180] Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") [Timeout 660] "Notification: DeltaRobot requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 59.91 kB / 443.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1156, allocations: 54.56 MB / 497.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004577/0.1202, allocations: 2.987 MB / 0.489 GB, free: 13.87 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004775/0.1249, allocations: 2.941 MB / 0.4918 GB, free: 10.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.1251, allocations: 4 kB / 0.4918 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007642/0.1259, allocations: 243.3 kB / 0.4921 GB, free: 10.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001775/0.1277, allocations: 0.7985 MB / 0.4929 GB, free: 9.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.1279, allocations: 111.9 kB / 0.493 GB, free: 9.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.129, allocations: 0.8445 MB / 0.4938 GB, free: 8.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004639/0.1295, allocations: 268.2 kB / 0.494 GB, free: 8.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.1299, allocations: 354.7 kB / 0.4944 GB, free: 8.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005768/0.1305, allocations: 450.2 kB / 0.4948 GB, free: 7.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.1306, allocations: 64 kB / 0.4949 GB, free: 7.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.1321, allocations: 0.8345 MB / 0.4957 GB, free: 6.957 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003876/0.1325, allocations: 363 kB / 0.496 GB, free: 6.602 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003684/0.1329, allocations: 338.4 kB / 0.4964 GB, free: 6.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.1346, allocations: 1.456 MB / 0.4978 GB, free: 4.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1346, allocations: 0 / 0.4978 GB, free: 4.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1346, allocations: 0 / 0.4978 GB, free: 4.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1346, allocations: 0 / 0.4978 GB, free: 4.809 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002674/0.1373, allocations: 1.302 MB / 0.499 GB, free: 3.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1374, allocations: 8.031 kB / 0.4991 GB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.1385, allocations: 191.8 kB / 0.4992 GB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.1399, allocations: 0.6848 MB / 0.4999 GB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005534/0.1405, allocations: 0.6586 MB / 0.5005 GB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.1405, allocations: 32 kB / 0.5006 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.1426, allocations: 0.9452 MB / 0.5015 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1426, allocations: 4 kB / 0.5015 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-05/0.1427, allocations: 16 kB / 0.5015 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.1427, allocations: 11.94 kB / 0.5015 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002752/0.1454, allocations: 0.9702 MB / 0.5025 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.1478, allocations: 1.438 MB / 0.5039 GB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.149, allocations: 374.2 kB / 0.5042 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.1502, allocations: 368.4 kB / 0.5046 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.1502, allocations: 4.031 kB / 0.5046 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001321/0.1515, allocations: 469.3 kB / 0.505 GB, free: 13.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.804e-06/0.1515, allocations: 0 / 0.505 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.003718/0.1553, allocations: 1.113 MB / 0.5061 GB, free: 11.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.1554, allocations: 158.2 kB / 0.5063 GB, free: 11.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.1568, allocations: 0.9301 MB / 0.5072 GB, free: 10.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.76e-05/0.1568, allocations: 33.7 kB / 0.5072 GB, free: 10.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003616/0.1572, allocations: 388.1 kB / 0.5076 GB, free: 10.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.562e-05/0.1573, allocations: 39.69 kB / 0.5076 GB, free: 10.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.1574, allocations: 41.7 kB / 0.5077 GB, free: 10.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1575, allocations: 317.9 kB / 0.508 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.1587, allocations: 375.6 kB / 0.5083 GB, free: 9.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.16, allocations: 0.5311 MB / 0.5088 GB, free: 9.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.1623, allocations: 0.6536 MB / 0.5095 GB, free: 8.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1623, allocations: 224 / 0.5095 GB, free: 8.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002532/0.1648, allocations: 0.8012 MB / 0.5103 GB, free: 7.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1648, allocations: 11.97 kB / 0.5103 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1648, allocations: 4 kB / 0.5103 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.1648, allocations: 0 / 0.5103 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/0.1655, allocations: 115.8 kB / 0.5104 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1655, allocations: 4 kB / 0.5104 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008181/0.1663, allocations: 123.8 kB / 0.5105 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.1663, allocations: 4 kB / 0.5105 GB, free: 7.293 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0004425/0.1668, allocations: 317.6 kB / 0.5108 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.1669, allocations: 71.47 kB / 0.5109 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.167, allocations: 69.81 kB / 0.511 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.167, allocations: 4 kB / 0.511 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.167, allocations: 0 / 0.511 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.167, allocations: 7.922 kB / 0.511 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006755/0.1677, allocations: 0.5058 MB / 0.5115 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1677, allocations: 0 / 0.5115 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005848/0.1683, allocations: 111.8 kB / 0.5116 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.1683, allocations: 4 kB / 0.5116 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.1683, allocations: 0 / 0.5116 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1683, allocations: 0 / 0.5116 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1683, allocations: 0 / 0.5116 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.1708, allocations: 0.8084 MB / 0.5124 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.171, allocations: 59.56 kB / 0.5124 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.1711, allocations: 8 kB / 0.5124 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007682/0.1718, allocations: 111.8 kB / 0.5125 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.172, allocations: 47.94 kB / 0.5126 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.867e-05/0.1721, allocations: 19.98 kB / 0.5126 GB, free: 5.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001056/0.1731, allocations: 0.6902 MB / 0.5133 GB, free: 4.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1731, allocations: 0 / 0.5133 GB, free: 4.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008179/0.1739, allocations: 287.2 kB / 0.5135 GB, free: 4.133 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: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008027/0.1747, allocations: 378.4 kB / 0.5139 GB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.1772, allocations: 0.748 MB / 0.5146 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1772, allocations: 0 / 0.5146 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.1785, allocations: 387.5 kB / 0.515 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009008/0.1794, allocations: 210.6 kB / 0.5152 GB, free: 2.422 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.1823, allocations: 1.562 MB / 0.5167 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.1828, allocations: 422 kB / 0.5171 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.1831, allocations: 39.42 kB / 0.5172 GB, free: 364 kB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1831, allocations: 0 / 0.5172 GB, free: 364 kB / 382.1 MB Notification: Performance of Templates: time 0.2526/0.4357, allocations: 14.27 MB / 0.5311 GB, free: 29.28 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile [Timeout 660] make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DOMC_BUILD -DUSE_THREAD -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.o OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.cpp In file included from OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.cpp:29: ./OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testInitialize.cpp:355:141: error: use of undeclared identifier 'switch2_P_poseInput_omcQ_24PRE_P_switch2_P_count__P_stopTime_' SystemDefaultImplementation::setBoolStartValue(__omcQ_24whenCondition1_, ((_discrete_events->pre(_switch2_P_count_) <= 1) && (_simTime >= switch2_P_poseInput_omcQ_24PRE_P_switch2_P_count__P_stopTime_)), false); ^ In file included from OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.cpp:33: ./OMCppDeltaRobot_DeltaRobot.Tests.Switch2_test.cpp:878:15: error: use of undeclared identifier 'switch2_P_poseInput_P_stopTime_' f[6] = (switch2_P_poseInput_P_stopTime_ - _simTime - _zeroTol); ^ ./OMCppDeltaRobot_DeltaRobot.Tests.Switch2_test.cpp:880:37: error: use of undeclared identifier 'switch2_P_poseInput_P_stopTime_' f[6] = (_simTime - _zeroTol - switch2_P_poseInput_P_stopTime_); ^ ./OMCppDeltaRobot_DeltaRobot.Tests.Switch2_test.cpp:1041:30: error: use of undeclared identifier 'switch2_P_poseInput_P_stopTime_' tmp334=(_simTime>=switch2_P_poseInput_P_stopTime_); ^ 4 errors generated. make: *** [: OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.729526816867292] Failed to read output from testmodel.py, exit status != 0: 0.44349832087755203 0.45476688699999995 0.31789857599999993 Calling exit ...