Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002452/0.002451, allocations: 181.5 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.202e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09766, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.5156, allocations: 84.76 MB / 453.9 MB, free: 8.484 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.5161, allocations: 75.48 kB / 454 MB, free: 8.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1496/0.6657, allocations: 31.71 MB / 485.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.6657, allocations: 0 / 485.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002137/0.666, allocations: 55.94 kB / 485.8 MB, free: 10.38 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.007747/0.6737, allocations: 1.956 MB / 487.7 MB, free: 8.367 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.659e-05/0.6738, allocations: 12.03 kB / 487.7 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001313/0.6752, allocations: 328.6 kB / 488.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.6766, allocations: 257.2 kB / 488.3 MB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004308/0.681, allocations: 1.238 MB / 489.6 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/0.6813, allocations: 168.5 kB / 489.7 MB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000994/0.6823, allocations: 231.8 kB / 489.9 MB, free: 6.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009418/0.6917, allocations: 2.701 MB / 492.6 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.055e-05/0.6919, allocations: 0 / 492.6 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004483/0.6923, allocations: 96 kB / 492.7 MB, free: 3.148 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.69e-05/0.6924, allocations: 56 kB / 492.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006751/0.6992, allocations: 1.884 MB / 494.7 MB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0229/0.7221, allocations: 7.722 MB / 0.4906 GB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/0.7242, allocations: 1.246 MB / 0.4918 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.726, allocations: 0.5985 MB / 0.4924 GB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.346e-05/0.7261, allocations: 4.562 kB / 0.4924 GB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.7262, allocations: 39.12 kB / 0.4925 GB, free: 7.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 6.382e-06/0.7262, allocations: 3.984 kB / 0.4925 GB, free: 7.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.005838/0.7321, allocations: 2.099 MB / 0.4945 GB, free: 5.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.7322, allocations: 59.97 kB / 0.4946 GB, free: 4.977 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.7338, allocations: 0.6989 MB / 0.4953 GB, free: 4.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.734, allocations: 41.7 kB / 0.4953 GB, free: 4.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008743/0.7349, allocations: 0.9279 MB / 0.4962 GB, free: 3.281 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003587/0.7353, allocations: 220.8 kB / 0.4964 GB, free: 3.062 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.7354, allocations: 20 kB / 0.4964 GB, free: 3.043 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.7356, allocations: 342.8 kB / 0.4968 GB, free: 2.699 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000915/0.7365, allocations: 349.6 kB / 0.4971 GB, free: 2.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.7377, allocations: 0.5587 MB / 0.4976 GB, free: 1.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.7388, allocations: 454.8 kB / 0.4981 GB, free: 1.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.7389, allocations: 4 kB / 0.4981 GB, free: 1.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002854/0.7417, allocations: 1.073 MB / 0.4991 GB, free: 176 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.7418, allocations: 8 kB / 0.4991 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.159e-05/0.7419, allocations: 11.98 kB / 0.4991 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004795/0.7424, allocations: 117.1 kB / 0.4993 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.7438, allocations: 171.7 kB / 0.4994 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.7474, allocations: 2.135 MB / 0.5015 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.7486, allocations: 48.03 kB / 0.5016 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00019/0.7489, allocations: 35.98 kB / 0.5016 GB, free: 13.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002882/0.7492, allocations: 148.8 kB / 0.5017 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003218/0.7495, allocations: 75.06 kB / 0.5018 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/0.7521, allocations: 0.9096 MB / 0.5027 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.7521, allocations: 8 kB / 0.5027 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.7522, allocations: 4.062 kB / 0.5027 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.7522, allocations: 3.984 kB / 0.5027 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007462/0.7597, allocations: 2.677 MB / 0.5053 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/0.7597, allocations: 0 / 0.5053 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009705/0.7607, allocations: 116.2 kB / 0.5054 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004233/0.7612, allocations: 104.6 kB / 0.5055 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.542e-05/0.7612, allocations: 16 kB / 0.5055 GB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003218/0.7645, allocations: 2.084 MB / 0.5076 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.7645, allocations: 4.031 kB / 0.5076 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/0.768, allocations: 1.443 MB / 0.509 GB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006633/0.7687, allocations: 224.1 kB / 0.5092 GB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.7689, allocations: 19.94 kB / 0.5092 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007799/0.7697, allocations: 48.02 kB / 0.5093 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.7699, allocations: 56.38 kB / 0.5093 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/0.77, allocations: 16 kB / 0.5093 GB, free: 5.246 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001193/0.7712, allocations: 0.5421 MB / 0.5099 GB, free: 4.707 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7713, allocations: 4 kB / 0.5099 GB, free: 4.703 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001654/0.7729, allocations: 312 kB / 0.5102 GB, free: 4.398 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004141/0.7771, allocations: 2.38 MB / 0.5125 GB, free: 1.953 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.7798, allocations: 1.03 MB / 0.5135 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.7798, allocations: 4.062 kB / 0.5135 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.7813, allocations: 0.6024 MB / 0.5141 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.7832, allocations: 211.2 kB / 0.5143 GB, free: 68 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008929/0.7922, allocations: 3.003 MB / 0.5172 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/0.7944, allocations: 1.715 MB / 0.5189 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/0.7959, allocations: 0.6399 MB / 0.5195 GB, free: 10.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7959, allocations: 4 kB / 0.5195 GB, free: 10.61 MB / 410.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:91:34: error: use of undeclared identifier 'D_24tmpVar12_'; did you mean 'D_24tmpVar13_'? D_24tmpVar13_ = std::cos(D_24tmpVar12_); ^~~~~~~~~~~~~ D_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:68:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:128:34: error: use of undeclared identifier 'D_24tmpVar15_'; did you mean 'D_24tmpVar16_'? D_24tmpVar16_ = std::sin(D_24tmpVar15_); ^~~~~~~~~~~~~ D_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFunctions.cpp:105:12: note: 'D_24tmpVar16_' declared here double D_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TestSensorsCalcHelperMain.o] Error 1