Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.199e-05/3.203e-05, allocations: 0 / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.517/0.6274, allocations: 96.33 MB / 439 MB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.6278, allocations: 87.95 kB / 439 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.614/2.241, allocations: 301.3 MB / 0.723 GB, free: 50.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.364e-06/2.241, allocations: 3.062 kB / 0.723 GB, free: 50.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000475/2.242, allocations: 192.6 kB / 0.7232 GB, free: 50.32 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2457 * Number of variables: 2457 Notification: Performance of Generate backend data structure: time 0.03791/2.28, allocations: 7.802 MB / 0.7308 GB, free: 48.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/2.28, allocations: 7.344 kB / 0.7308 GB, free: 48.02 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005645/2.286, allocations: 1.268 MB / 0.7321 GB, free: 47.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02006/2.306, allocations: 2.6 MB / 0.7346 GB, free: 47.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01695/2.323, allocations: 5.519 MB / 0.74 GB, free: 46.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008097/2.324, allocations: 0.6337 MB / 0.7406 GB, free: 46.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003666/2.327, allocations: 0.833 MB / 0.7414 GB, free: 46.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04208/2.369, allocations: 13.35 MB / 0.7545 GB, free: 45.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003891/2.37, allocations: 11.17 kB / 0.7545 GB, free: 45.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002899/2.373, allocations: 375.4 kB / 0.7548 GB, free: 45.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008728/2.374, allocations: 0.613 MB / 0.7554 GB, free: 45.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03109/2.405, allocations: 10 MB / 0.7652 GB, free: 45.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09945/2.504, allocations: 43.67 MB / 0.8078 GB, free: 22.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01537/2.52, allocations: 10.49 MB / 0.8181 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0038/2.523, allocations: 1.716 MB / 0.8198 GB, free: 11.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000347/2.524, allocations: 133.8 kB / 0.8199 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/2.524, allocations: 60.56 kB / 0.8199 GB, free: 10.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=234): time 5.62e-06/2.524, allocations: 4 kB / 0.82 GB, free: 10.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=234): time 0.007526/2.531, allocations: 3.057 MB / 0.8229 GB, free: 8.219 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/2.532, allocations: 77.41 kB / 0.823 GB, free: 8.133 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005745/2.537, allocations: 2.59 MB / 0.8255 GB, free: 5.852 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000508/2.538, allocations: 61.7 kB / 0.8256 GB, free: 5.785 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002569/2.541, allocations: 3.789 MB / 0.8293 GB, free: 2.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001168/2.542, allocations: 0.83 MB / 0.8301 GB, free: 1.672 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004477/2.542, allocations: 96 kB / 0.8302 GB, free: 1.578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000322/2.543, allocations: 0.5002 MB / 0.8307 GB, free: 1.121 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008652/2.551, allocations: 2.216 MB / 0.8329 GB, free: 0 / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007769/2.559, allocations: 4.128 MB / 0.8369 GB, free: 11.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007289/2.566, allocations: 3.042 MB / 0.8399 GB, free: 8.559 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.869e-05/2.566, allocations: 20 kB / 0.8399 GB, free: 8.539 MB / 458.7 MB Notification: Performance of matching and sorting (n=603) (initialization): time 0.01758/2.584, allocations: 6.222 MB / 0.846 GB, free: 3.098 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/2.584, allocations: 40 kB / 0.846 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/2.584, allocations: 72 kB / 0.8461 GB, free: 2.988 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/2.586, allocations: 423 kB / 0.8465 GB, free: 2.625 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007171/2.593, allocations: 1.07 MB / 0.8475 GB, free: 1.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008025/2.601, allocations: 4.065 MB / 0.8515 GB, free: 13.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005324/2.606, allocations: 0.6255 MB / 0.8521 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00101/2.607, allocations: 251.4 kB / 0.8523 GB, free: 13.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (574): * Single equations (assignments): 569 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009822/2.608, allocations: 414.9 kB / 0.8527 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008787/2.609, allocations: 275.9 kB / 0.853 GB, free: 12.48 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009856/2.619, allocations: 3.669 MB / 0.8566 GB, free: 9.395 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007525/2.627, allocations: 2.864 MB / 0.8594 GB, free: 6.918 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/2.627, allocations: 8 kB / 0.8594 GB, free: 6.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-05/2.627, allocations: 11.16 kB / 0.8594 GB, free: 6.91 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3782/3.005, allocations: 10.35 MB / 0.8695 GB, free: 76.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-05/3.005, allocations: 3.734 kB / 0.8695 GB, free: 76.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004169/3.009, allocations: 417 kB / 0.8699 GB, free: 76.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001355/3.011, allocations: 314.7 kB / 0.8702 GB, free: 76.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006351/3.012, allocations: 51.64 kB / 0.8702 GB, free: 76.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007781/3.019, allocations: 3.853 MB / 0.874 GB, free: 75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/3.019, allocations: 6.703 kB / 0.874 GB, free: 75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/3.033, allocations: 5.329 MB / 0.8792 GB, free: 74.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/3.036, allocations: 0.6345 MB / 0.8798 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009432/3.037, allocations: 47.05 kB / 0.8799 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002813/3.039, allocations: 132.3 kB / 0.88 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007383/3.04, allocations: 156.1 kB / 0.8802 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002683/3.041, allocations: 68.2 kB / 0.8802 GB, free: 74.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005786/3.046, allocations: 1.912 MB / 0.8821 GB, free: 74.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.11e-07/3.046, allocations: 0 / 0.8821 GB, free: 74.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008894/3.055, allocations: 1.985 MB / 0.884 GB, free: 73.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (currentQuasiRMSSensor.currentSensor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01464/3.07, allocations: 6.391 MB / 0.8903 GB, free: 72.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01105/3.081, allocations: 4.518 MB / 0.8947 GB, free: 72.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/3.081, allocations: 3.594 kB / 0.8947 GB, free: 72.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004557/3.086, allocations: 1.742 MB / 0.8964 GB, free: 72.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005544/3.091, allocations: 0.6019 MB / 0.897 GB, free: 72.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04235/3.134, allocations: 13.03 MB / 0.9097 GB, free: 69.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01111/3.145, allocations: 5.624 MB / 0.9152 GB, free: 69.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006457/3.151, allocations: 2.717 MB / 0.9178 GB, free: 69.13 MB / 474.7 MB Notification: Performance of SimCode: time 1.583e-06/3.151, allocations: 0 / 0.9178 GB, free: 69.13 MB / 474.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsFunctions.cpp:300:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp107 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsFunctions.cpp:300:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp107 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsFMU.cpp:11: /var/lib/jenkins/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_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_QuasiStatic_Polyphase_Examples_TestSensorsCalcHelperMain.o] Error 1