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.0007954/0.0007954, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008278/0.0008278, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.8401/0.8401, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.01505/0.01505, allocations: 4.079 MB / 264 MB, free: 9.238 MB / 250.7 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: Performance of FrontEnd - loaded program: time 3.256e-06/3.256e-06, allocations: 0 / 388.8 MB, free: 8.539 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.711e-05/4.037e-05, allocations: 6.281 kB / 388.8 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003055/0.003096, allocations: 2.973 MB / 391.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002879/0.005975, allocations: 2.957 MB / 394.8 MB, free: 2.574 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.006096, allocations: 4 kB / 394.8 MB, free: 2.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.006714, allocations: 251.1 kB / 395 MB, free: 2.324 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.007801, allocations: 0.8135 MB / 395.8 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.007956, allocations: 111.8 kB / 395.9 MB, free: 1.398 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006389/0.008595, allocations: 0.8715 MB / 396.8 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.00892, allocations: 268.1 kB / 397.1 MB, free: 260 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003804/0.0093, allocations: 478.9 kB / 397.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003025/0.009602, allocations: 399 kB / 397.9 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.009663, allocations: 68 kB / 398 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008272/0.01049, allocations: 0.8421 MB / 398.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.01072, allocations: 363 kB / 399.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.01091, allocations: 291.3 kB / 399.5 MB, free: 13.84 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.01202, allocations: 1.543 MB / 401 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.01203, allocations: 3.984 kB / 401 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01203, allocations: 3.938 kB / 401 MB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.01204, allocations: 3.938 kB / 401 MB, free: 12.29 MB / 330.7 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.001533/0.01357, allocations: 1.286 MB / 402.3 MB, free: 10.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.01361, allocations: 12.03 kB / 402.3 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/0.01415, allocations: 187.8 kB / 402.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007069/0.01486, allocations: 0.6887 MB / 403.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002893/0.01514, allocations: 0.6547 MB / 403.9 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.573e-05/0.01519, allocations: 32 kB / 403.9 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.01625, allocations: 0.9452 MB / 404.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.01626, allocations: 0 / 404.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.0163, allocations: 19.94 kB / 404.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.0163, allocations: 8 kB / 404.9 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.01762, allocations: 0.9624 MB / 405.8 MB, free: 7.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.01896, allocations: 1.454 MB / 407.3 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.01954, allocations: 378.2 kB / 407.6 MB, free: 5.363 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005453/0.02009, allocations: 364.4 kB / 408 MB, free: 5.004 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.02012, allocations: 4 kB / 408 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006631/0.02078, allocations: 450.9 kB / 408.4 MB, free: 4.547 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.02078, allocations: 0 / 408.4 MB, free: 4.547 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.001862/0.02265, allocations: 1.129 MB / 409.6 MB, free: 3.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.984e-05/0.02272, allocations: 158.2 kB / 409.7 MB, free: 3.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007771/0.02349, allocations: 0.934 MB / 410.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.02352, allocations: 25.7 kB / 410.7 MB, free: 2.246 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.02372, allocations: 380.2 kB / 411.1 MB, free: 1.867 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.02376, allocations: 51.58 kB / 411.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.02383, allocations: 37.7 kB / 411.1 MB, free: 1.773 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.433e-05/0.02391, allocations: 321.9 kB / 411.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005588/0.02447, allocations: 367.6 kB / 411.8 MB, free: 1.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.02508, allocations: 0.5394 MB / 412.4 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1432/0.1683, allocations: 0.6494 MB / 413 MB, free: 35.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1683, allocations: 5.25 kB / 413 MB, free: 35.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00162/0.1699, allocations: 0.7953 MB / 413.8 MB, free: 35.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.17, allocations: 7.031 kB / 413.8 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.17, allocations: 1.219 kB / 413.8 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.868e-05/0.17, allocations: 3.219 kB / 413.8 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.1703, allocations: 118.5 kB / 413.9 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1703, allocations: 3.125 kB / 413.9 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.1708, allocations: 120.6 kB / 414.1 MB, free: 35.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.1708, allocations: 6.516 kB / 414.1 MB, free: 35.76 MB / 330.7 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.0003613/0.1711, allocations: 318 kB / 414.4 MB, free: 35.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.1712, allocations: 65.73 kB / 414.4 MB, free: 35.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.763e-05/0.1713, allocations: 72.8 kB / 414.5 MB, free: 35.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1713, allocations: 1.188 kB / 414.5 MB, free: 35.63 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1713, allocations: 1.703 kB / 414.5 MB, free: 35.63 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1713, allocations: 0.75 kB / 414.5 MB, free: 35.63 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005068/0.1718, allocations: 0.5055 MB / 415 MB, free: 35.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1718, allocations: 0 / 415 MB, free: 35.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.1721, allocations: 110.7 kB / 415.1 MB, free: 35.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1721, allocations: 4.969 kB / 415.1 MB, free: 35.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1721, allocations: 7.781 kB / 415.1 MB, free: 35.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1721, allocations: 0 / 415.1 MB, free: 35.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1721, allocations: 1.094 kB / 415.1 MB, free: 35.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.1735, allocations: 0.805 MB / 415.9 MB, free: 35.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.068e-05/0.1735, allocations: 63.36 kB / 416 MB, free: 35.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.348e-05/0.1736, allocations: 2.688 kB / 416 MB, free: 35.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.174, allocations: 118 kB / 416.1 MB, free: 35.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.1741, allocations: 49.17 kB / 416.2 MB, free: 35.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.1741, allocations: 10.34 kB / 416.2 MB, free: 35.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006798/0.1748, allocations: 0.6867 MB / 416.9 MB, free: 34.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1748, allocations: 0 / 416.9 MB, free: 34.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006324/0.1754, allocations: 287.4 kB / 417.2 MB, free: 34.92 MB / 330.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: 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.0005688/0.176, allocations: 398 kB / 417.5 MB, free: 34.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.1772, allocations: 0.7481 MB / 418.3 MB, free: 34.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1772, allocations: 1.062 kB / 418.3 MB, free: 34.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.1779, allocations: 386.5 kB / 418.7 MB, free: 34.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.1784, allocations: 224.6 kB / 418.9 MB, free: 34.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.18, allocations: 1.53 MB / 420.4 MB, free: 33.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.1803, allocations: 428.9 kB / 420.8 MB, free: 33.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.1804, allocations: 50.3 kB / 420.9 MB, free: 33.71 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1804, allocations: 0 / 420.9 MB, free: 33.71 MB / 330.7 MB Notification: Performance of Templates: time 0.01022/0.1907, allocations: 14.28 MB / 435.2 MB, free: 25.09 MB / 330.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/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_' 355 | 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_' 878 | 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_' 880 | 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_' 1041 | 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: 2.5292929746210575] Failed to read output from testmodel.py, exit status != 0: 0.19597972556948662 0.20061262600000002 0.187410827 Calling exit ...