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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 111.3 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 193.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.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.1519/0.1519, allocations: 5.211 MB / 303.1 MB, free: 3.695 MB / 238.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.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=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 0.001953/0.001953, allocations: 67.89 kB / 418.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2806, allocations: 50.56 MB / 469 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003833/0.2844, allocations: 3.157 MB / 472.2 MB, free: 18.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0041/0.2886, allocations: 3.189 MB / 475.4 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.2889, allocations: 4.906 kB / 475.4 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008877/0.2898, allocations: 279.3 kB / 475.6 MB, free: 16.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002216/0.2921, allocations: 0.7957 MB / 476.4 MB, free: 16.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.2924, allocations: 114.9 kB / 476.5 MB, free: 16.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2935, allocations: 0.8351 MB / 477.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.2942, allocations: 0.5479 MB / 477.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004734/0.2947, allocations: 337.1 kB / 478.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000522/0.2952, allocations: 448.5 kB / 478.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2954, allocations: 64.03 kB / 478.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.2973, allocations: 0.8983 MB / 479.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003917/0.2977, allocations: 354.8 kB / 480 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003906/0.2981, allocations: 426.9 kB / 480.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002069/0.3002, allocations: 1.438 MB / 481.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3002, allocations: 0 / 481.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3002, allocations: 1.781 kB / 481.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.3003, allocations: 0 / 481.9 MB, free: 14.05 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.00264/0.3029, allocations: 1.371 MB / 483.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.303, allocations: 9.438 kB / 483.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.3041, allocations: 190 kB / 483.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.3052, allocations: 0.7492 MB / 484.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.3055, allocations: 169.8 kB / 484.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.839e-05/0.3055, allocations: 38.77 kB / 484.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.3074, allocations: 0.8418 MB / 485.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3074, allocations: 1.062 kB / 485.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.3075, allocations: 15.16 kB / 485.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3075, allocations: 20.62 kB / 485.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.3099, allocations: 0.9614 MB / 486.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.312, allocations: 1.732 MB / 488 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3131, allocations: 386.9 kB / 488.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.3141, allocations: 375.9 kB / 488.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.3142, allocations: 1.188 kB / 488.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.3154, allocations: 452.9 kB / 489.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.114e-06/0.3154, allocations: 0 / 489.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003486/0.3189, allocations: 1.129 MB / 490.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3189, allocations: 164.9 kB / 490.4 MB, free: 9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.3204, allocations: 1.058 MB / 491.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.3204, allocations: 27.08 kB / 491.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.3207, allocations: 372.4 kB / 491.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.3207, allocations: 42.59 kB / 491.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.3209, allocations: 43.58 kB / 492 MB, free: 8.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.3209, allocations: 312.7 kB / 492.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.322, allocations: 373.1 kB / 492.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.3231, allocations: 442.2 kB / 493.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.325, allocations: 0.6558 MB / 493.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3251, allocations: 0 / 493.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002331/0.3274, allocations: 0.8096 MB / 494.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3274, allocations: 7.75 kB / 494.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3274, allocations: 1.219 kB / 494.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.3275, allocations: 2.406 kB / 494.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.328, allocations: 119 kB / 494.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3281, allocations: 10.42 kB / 494.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009201/0.329, allocations: 135.4 kB / 494.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/0.329, allocations: 7.094 kB / 494.8 MB, free: 6.418 MB / 350.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.0004445/0.3295, allocations: 320 kB / 495.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.3296, allocations: 76.36 kB / 495.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.3297, allocations: 87.94 kB / 495.3 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.3297, allocations: 5.219 kB / 495.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.3297, allocations: 5.094 kB / 495.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3297, allocations: 0 / 495.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006254/0.3304, allocations: 0.6875 MB / 496 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3304, allocations: 4 kB / 496 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.3309, allocations: 110.7 kB / 496.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3309, allocations: 0 / 496.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.331, allocations: 2.625 kB / 496.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.331, allocations: 0 / 496.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.331, allocations: 7.938 kB / 496.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.3332, allocations: 0.8111 MB / 496.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.3333, allocations: 150 kB / 497.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.3334, allocations: 10.58 kB / 497.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007234/0.3342, allocations: 111.5 kB / 497.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.3343, allocations: 51.78 kB / 497.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/0.3344, allocations: 10.61 kB / 497.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009728/0.3354, allocations: 0.7726 MB / 498 MB, free: 4.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3354, allocations: 0 / 498 MB, free: 4.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.3363, allocations: 267.4 kB / 498.3 MB, free: 4.082 MB / 350.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.0006539/0.3369, allocations: 366.5 kB / 498.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.339, allocations: 0.7454 MB / 499.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.339, allocations: 0 / 499.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.3401, allocations: 397.9 kB / 499.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008251/0.3409, allocations: 224.1 kB / 500 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.3431, allocations: 1.576 MB / 0.4898 GB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.3435, allocations: 1.022 MB / 0.4908 GB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.3438, allocations: 47.42 kB / 0.4908 GB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3438, allocations: 0 / 0.4908 GB, free: 15.67 MB / 366.1 MB Notification: Performance of Templates: time 0.02035/0.3642, allocations: 13.88 MB / 0.5044 GB, free: 1.914 MB / 366.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 -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_2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 [Calling os._exit(0), Time elapsed: 4.059450716944411] Failed to read output from testmodel.py, exit status != 0: 0.3715057719964534 0.384038547 0.081284011 Calling exit ...