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.001136/0.001136, allocations: 110.1 kB / 16.29 MB, free: 6.43 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.001083/0.001083, allocations: 187.2 kB / 17.22 MB, free: 5.934 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.227/1.227, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02347/0.02347, allocations: 5.232 MB / 296.3 MB, free: 9.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 67.89 kB / 357.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1742, allocations: 50.55 MB / 408.5 MB, free: 30.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00309/0.1773, allocations: 3.167 MB / 411.6 MB, free: 26.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.18, allocations: 3.188 MB / 414.8 MB, free: 23.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1801, allocations: 8 kB / 414.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005311/0.1806, allocations: 275.1 kB / 415.1 MB, free: 23.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00108/0.1817, allocations: 0.7907 MB / 415.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.1819, allocations: 107.9 kB / 416 MB, free: 22.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005861/0.1825, allocations: 0.8468 MB / 416.8 MB, free: 21.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004336/0.1829, allocations: 0.546 MB / 417.4 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.1832, allocations: 334.8 kB / 417.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003057/0.1835, allocations: 450.3 kB / 418.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.336e-05/0.1836, allocations: 64 kB / 418.2 MB, free: 20.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009394/0.1845, allocations: 0.8968 MB / 419.1 MB, free: 19.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1847, allocations: 359.1 kB / 419.5 MB, free: 19.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.185, allocations: 425.9 kB / 419.9 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008645/0.1858, allocations: 1.433 MB / 421.3 MB, free: 17.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1858, allocations: 0 / 421.3 MB, free: 17.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1858, allocations: 0 / 421.3 MB, free: 17.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1859, allocations: 0 / 421.3 MB, free: 17.17 MB / 302.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.001863/0.1877, allocations: 1.339 MB / 422.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1878, allocations: 8.031 kB / 422.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009874/0.1888, allocations: 191.2 kB / 422.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009555/0.1897, allocations: 0.7367 MB / 423.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.1899, allocations: 170 kB / 423.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.19, allocations: 36 kB / 423.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.1915, allocations: 0.8448 MB / 424.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1915, allocations: 0 / 424.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.606e-05/0.1915, allocations: 16 kB / 424.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1915, allocations: 11.94 kB / 424.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00216/0.1937, allocations: 0.9624 MB / 425.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.1954, allocations: 1.726 MB / 427.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009886/0.1964, allocations: 386.2 kB / 427.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000946/0.1973, allocations: 372.4 kB / 428.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/0.1974, allocations: 96 / 428.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.1984, allocations: 458.8 kB / 428.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.1984, allocations: 0 / 428.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002967/0.2014, allocations: 1.128 MB / 429.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.2015, allocations: 154.2 kB / 429.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009865/0.2024, allocations: 1.056 MB / 430.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.2025, allocations: 25.7 kB / 430.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.2027, allocations: 380 kB / 431.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.2027, allocations: 35.45 kB / 431.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2028, allocations: 49.61 kB / 431.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.2029, allocations: 314 kB / 431.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009699/0.2038, allocations: 371.6 kB / 432 MB, free: 6.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009683/0.2048, allocations: 440.5 kB / 432.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.2066, allocations: 0.6578 MB / 433.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2066, allocations: 0 / 433.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002001/0.2086, allocations: 0.8046 MB / 433.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.2086, allocations: 4 kB / 433.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2086, allocations: 4 kB / 433.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.2086, allocations: 4 kB / 433.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.2092, allocations: 119.9 kB / 434 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2092, allocations: 7.938 kB / 434 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006834/0.2099, allocations: 131.5 kB / 434.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.2099, allocations: 11.98 kB / 434.2 MB, free: 3.953 MB / 302.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.0002385/0.2101, allocations: 310.6 kB / 434.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-05/0.2102, allocations: 79 kB / 434.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.31e-05/0.2103, allocations: 86.88 kB / 434.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2103, allocations: 0 / 434.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2103, allocations: 3.938 kB / 434.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2103, allocations: 3.984 kB / 434.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004678/0.2108, allocations: 0.6856 MB / 435.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2108, allocations: 0 / 435.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004876/0.2113, allocations: 111.8 kB / 435.4 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.2113, allocations: 4 kB / 435.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.2114, allocations: 7.984 kB / 435.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2114, allocations: 0 / 435.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2114, allocations: 3.938 kB / 435.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.2134, allocations: 0.8118 MB / 436.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.2135, allocations: 144.2 kB / 436.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.693e-05/0.2136, allocations: 8 kB / 436.4 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006593/0.2142, allocations: 107.8 kB / 436.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2144, allocations: 55.88 kB / 436.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.2144, allocations: 7.984 kB / 436.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007591/0.2152, allocations: 0.7722 MB / 437.4 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2152, allocations: 0 / 437.4 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005739/0.2158, allocations: 263.6 kB / 437.6 MB, free: 424 kB / 302.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.0005522/0.2163, allocations: 362.8 kB / 438 MB, free: 52 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.2186, allocations: 0.7526 MB / 438.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2186, allocations: 0 / 438.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.2197, allocations: 391.5 kB / 439.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008616/0.2206, allocations: 228.7 kB / 439.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.2232, allocations: 1.551 MB / 440.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000612/0.2238, allocations: 1.03 MB / 441.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.224, allocations: 39.42 kB / 442 MB, free: 12.01 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.224, allocations: 0 / 442 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Templates: time 0.01522/0.2393, allocations: 13.84 MB / 455.8 MB, free: 14.31 MB / 334.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