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.001199/0.001199, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001111/0.001111, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.174/1.174, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02396/0.02396, allocations: 5.233 MB / 296.3 MB, free: 9.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.89 kB / 357.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.1763, allocations: 50.55 MB / 408.4 MB, free: 30.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002991/0.1794, allocations: 3.159 MB / 411.6 MB, free: 26.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002663/0.1821, allocations: 3.186 MB / 414.8 MB, free: 23.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.1822, allocations: 11.94 kB / 414.8 MB, free: 23.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005353/0.1827, allocations: 279.1 kB / 415.1 MB, free: 23.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1839, allocations: 0.7907 MB / 415.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.184, allocations: 107.9 kB / 416 MB, free: 22.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000582/0.1846, allocations: 0.8406 MB / 416.8 MB, free: 21.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.1851, allocations: 0.546 MB / 417.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.1853, allocations: 338.8 kB / 417.7 MB, free: 20.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003016/0.1856, allocations: 442.3 kB / 418.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.694e-05/0.1857, allocations: 64 kB / 418.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009805/0.1867, allocations: 0.8968 MB / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.1869, allocations: 359.1 kB / 419.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.1872, allocations: 429.8 kB / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008924/0.1881, allocations: 1.422 MB / 421.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1881, allocations: 0 / 421.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1881, allocations: 0 / 421.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.1881, allocations: 0 / 421.3 MB, free: 17.21 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.001799/0.1899, allocations: 1.331 MB / 422.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.1899, allocations: 12.03 kB / 422.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.1909, allocations: 191.2 kB / 422.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007948/0.1917, allocations: 0.7406 MB / 423.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.1919, allocations: 174 kB / 423.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.192, allocations: 28 kB / 423.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.1935, allocations: 0.8487 MB / 424.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1935, allocations: 0 / 424.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.1936, allocations: 16 kB / 424.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.1936, allocations: 15.88 kB / 424.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002174/0.1958, allocations: 0.9469 MB / 425.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.1973, allocations: 1.746 MB / 427.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.1983, allocations: 386.2 kB / 427.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009736/0.1993, allocations: 368.5 kB / 428 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.1994, allocations: 0 / 428 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.2005, allocations: 461.5 kB / 428.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.2005, allocations: 0 / 428.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003072/0.2035, allocations: 1.125 MB / 429.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.2036, allocations: 166.2 kB / 429.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000985/0.2046, allocations: 1.048 MB / 430.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.2046, allocations: 33.7 kB / 430.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.2048, allocations: 368 kB / 431.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.689e-05/0.2049, allocations: 43.45 kB / 431.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.205, allocations: 45.61 kB / 431.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.93e-05/0.205, allocations: 310 kB / 431.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009829/0.206, allocations: 371.6 kB / 432 MB, free: 6.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.207, allocations: 444.5 kB / 432.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.2089, allocations: 0.6582 MB / 433.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2089, allocations: 0 / 433.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002092/0.211, allocations: 0.8084 MB / 433.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.211, allocations: 8 kB / 433.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.211, allocations: 0 / 433.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.211, allocations: 0 / 433.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.2115, allocations: 119.9 kB / 434 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.2116, allocations: 7.938 kB / 434 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.2123, allocations: 143.4 kB / 434.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.2123, allocations: 4 kB / 434.1 MB, free: 3.984 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.0002414/0.2126, allocations: 314.4 kB / 434.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.361e-05/0.2126, allocations: 71.06 kB / 434.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.626e-05/0.2127, allocations: 78.94 kB / 434.6 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2127, allocations: 4 kB / 434.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2127, allocations: 3.938 kB / 434.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2128, allocations: 0 / 434.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005146/0.2133, allocations: 0.6933 MB / 435.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2133, allocations: 48 / 435.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005174/0.2138, allocations: 123.7 kB / 435.4 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2138, allocations: 0 / 435.4 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.2138, allocations: 8 kB / 435.4 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2139, allocations: 4 kB / 435.4 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2139, allocations: 3.938 kB / 435.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.2159, allocations: 0.8002 MB / 436.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/0.216, allocations: 148.2 kB / 436.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.2161, allocations: 0 / 436.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006927/0.2168, allocations: 119.8 kB / 436.5 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.217, allocations: 51.88 kB / 436.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.217, allocations: 11.98 kB / 436.6 MB, free: 1.465 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007525/0.2178, allocations: 0.7683 MB / 437.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2178, allocations: 0 / 437.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005879/0.2184, allocations: 267.5 kB / 437.6 MB, free: 452 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.0006729/0.219, allocations: 358.8 kB / 437.9 MB, free: 84 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.2214, allocations: 0.7611 MB / 438.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2215, allocations: 8 kB / 438.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.2226, allocations: 391 kB / 439.1 MB, free: 14.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008116/0.2234, allocations: 222.6 kB / 439.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.2257, allocations: 1.575 MB / 440.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.2262, allocations: 1.022 MB / 441.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.2264, allocations: 43.42 kB / 441.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2264, allocations: 0 / 441.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Templates: time 0.01492/0.2413, allocations: 13.83 MB / 455.8 MB, free: 14.32 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