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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 109.4 kB / 16.41 MB, free: 6.492 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.001171/0.001171, allocations: 189.6 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02496/0.02496, allocations: 5.221 MB / 296.4 MB, free: 9.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 56.09 kB / 409.7 MB, free: 26.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09709, allocations: 50.58 MB / 460.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004287/0.1014, allocations: 3.159 MB / 463.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004414/0.1059, allocations: 3.183 MB / 466.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1062, allocations: 4 kB / 466.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008366/0.1071, allocations: 279.1 kB / 466.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001792/0.1089, allocations: 0.7985 MB / 467.7 MB, free: 168 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.1092, allocations: 99.88 kB / 467.8 MB, free: 68 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.1102, allocations: 0.8551 MB / 468.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006342/0.1108, allocations: 0.5499 MB / 469.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.1112, allocations: 334.8 kB / 469.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004512/0.1117, allocations: 450.3 kB / 470 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1118, allocations: 64 kB / 470.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.1133, allocations: 0.8929 MB / 471 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003344/0.1137, allocations: 359.1 kB / 471.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000398/0.1141, allocations: 433.8 kB / 471.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.1156, allocations: 1.426 MB / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1156, allocations: 0 / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1156, allocations: 0 / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1157, allocations: 0 / 473.2 MB, free: 10.72 MB / 350.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.002401/0.1181, allocations: 1.343 MB / 474.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1181, allocations: 8.031 kB / 474.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.1192, allocations: 187.2 kB / 474.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.1203, allocations: 0.7367 MB / 475.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.1206, allocations: 166.1 kB / 475.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.957e-05/0.1207, allocations: 32 kB / 475.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.1224, allocations: 0.8526 MB / 476.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1224, allocations: 0 / 476.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.165e-05/0.1225, allocations: 16 kB / 476.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.1225, allocations: 11.94 kB / 476.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.1248, allocations: 0.9546 MB / 477.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.1274, allocations: 1.73 MB / 479.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1286, allocations: 386.2 kB / 479.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.1296, allocations: 368.5 kB / 479.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.1297, allocations: 0 / 479.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.1309, allocations: 467 kB / 480.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 4.709e-06/0.1309, allocations: 0 / 480.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003568/0.1345, allocations: 1.132 MB / 481.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.1346, allocations: 158.2 kB / 481.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/0.1365, allocations: 1.052 MB / 482.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.1366, allocations: 33.64 kB / 482.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003444/0.1369, allocations: 380 kB / 483.1 MB, free: 472 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.137, allocations: 35.45 kB / 483.2 MB, free: 436 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.1372, allocations: 45.7 kB / 483.2 MB, free: 384 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1373, allocations: 306 kB / 483.5 MB, free: 72 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.1383, allocations: 375.6 kB / 483.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.1394, allocations: 449.8 kB / 484.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.1413, allocations: 0.6576 MB / 485 MB, free: 14.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1413, allocations: 0 / 485 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002312/0.1436, allocations: 0.8046 MB / 485.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.1436, allocations: 4 kB / 485.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1437, allocations: 0 / 485.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.1437, allocations: 4 kB / 485.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/0.1443, allocations: 119.8 kB / 485.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1443, allocations: 8 kB / 485.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008833/0.1452, allocations: 131.6 kB / 486 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.1452, allocations: 8 kB / 486 MB, free: 13.49 MB / 366.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.0004922/0.1457, allocations: 319 kB / 486.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.1459, allocations: 75.06 kB / 486.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.1461, allocations: 78.94 kB / 486.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1461, allocations: 0 / 486.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1461, allocations: 3.938 kB / 486.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1461, allocations: 0 / 486.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009506/0.1471, allocations: 0.6933 MB / 487.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1471, allocations: 0 / 487.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.1476, allocations: 107.8 kB / 487.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1476, allocations: 4 kB / 487.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.1477, allocations: 8 kB / 487.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1477, allocations: 3.938 kB / 487.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1477, allocations: 3.938 kB / 487.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.15, allocations: 0.8118 MB / 488.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.1502, allocations: 148.1 kB / 488.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.1504, allocations: 4 kB / 488.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/0.1512, allocations: 115.8 kB / 488.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.1514, allocations: 55.88 kB / 488.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.517e-05/0.1514, allocations: 7.984 kB / 488.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.1526, allocations: 0.7722 MB / 489.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1526, allocations: 0 / 489.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008811/0.1535, allocations: 251.8 kB / 489.5 MB, free: 9.953 MB / 366.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.001062/0.1546, allocations: 362.8 kB / 489.8 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.1568, allocations: 0.7515 MB / 490.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.1568, allocations: 3.938 kB / 490.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.1579, allocations: 391.5 kB / 491 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.1591, allocations: 240.2 kB / 491.2 MB, free: 8.227 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.1622, allocations: 1.548 MB / 492.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000654/0.1629, allocations: 1.03 MB / 493.8 MB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.1632, allocations: 39.42 kB / 493.8 MB, free: 5.551 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1632, allocations: 0 / 493.8 MB, free: 5.551 MB / 366.1 MB Notification: Performance of Templates: time 0.02312/0.1863, allocations: 13.89 MB / 0.4958 GB, free: 7.75 MB / 382.1 MB make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile 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 -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/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_' tmp316=(_simTime>=switch2_P_poseInput_P_stopTime_); ^ 4 errors generated. make: *** [: OMCppDeltaRobot_DeltaRobot.Tests.Switch2_testCalcHelperMain.o] Error 1