Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.704e-05/2.72e-05, allocations: 0 / 292.1 MB, free: 8.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09249, allocations: 50.41 MB / 342.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3793/0.4718, allocations: 96.33 MB / 438.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.4721, allocations: 77.7 kB / 439 MB, free: 13.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.344/1.817, allocations: 301.3 MB / 0.7229 GB, free: 50.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.852e-06/1.817, allocations: 0 / 0.7229 GB, free: 50.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004144/1.817, allocations: 194.3 kB / 0.7231 GB, free: 50.62 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.03241/1.849, allocations: 7.795 MB / 0.7307 GB, free: 48.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/1.849, allocations: 7.281 kB / 0.7307 GB, free: 48.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/1.867, allocations: 2.6 MB / 0.7333 GB, free: 47.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/1.881, allocations: 5.525 MB / 0.7387 GB, free: 47.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000654/1.882, allocations: 0.6349 MB / 0.7393 GB, free: 47.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003115/1.885, allocations: 0.8334 MB / 0.7401 GB, free: 47.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03542/1.92, allocations: 13.35 MB / 0.7531 GB, free: 46.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/1.92, allocations: 6.656 kB / 0.7531 GB, free: 46.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002267/1.923, allocations: 367.9 kB / 0.7535 GB, free: 46.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006469/1.923, allocations: 0.6104 MB / 0.7541 GB, free: 46.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/1.95, allocations: 10 MB / 0.7639 GB, free: 46.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07773/2.028, allocations: 43.68 MB / 0.8065 GB, free: 23.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/2.04, allocations: 10.48 MB / 0.8167 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002932/2.043, allocations: 1.711 MB / 0.8184 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/2.043, allocations: 134.7 kB / 0.8185 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/2.043, allocations: 56.56 kB / 0.8186 GB, free: 12.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=234): time 6.217e-06/2.043, allocations: 0 / 0.8186 GB, free: 12.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=234): time 0.005757/2.049, allocations: 3.059 MB / 0.8216 GB, free: 9.434 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/2.049, allocations: 73.41 kB / 0.8217 GB, free: 9.352 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004369/2.053, allocations: 2.598 MB / 0.8242 GB, free: 7.062 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003135/2.053, allocations: 61.7 kB / 0.8243 GB, free: 6.996 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/2.055, allocations: 3.791 MB / 0.828 GB, free: 3.625 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007806/2.056, allocations: 0.8296 MB / 0.8288 GB, free: 2.883 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/2.056, allocations: 92 kB / 0.8289 GB, free: 2.793 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002895/2.057, allocations: 0.503 MB / 0.8293 GB, free: 2.336 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003411/2.06, allocations: 1.969 MB / 0.8313 GB, free: 0.6016 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/2.075, allocations: 4.577 MB / 0.8357 GB, free: 12.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00613/2.081, allocations: 3.047 MB / 0.8387 GB, free: 10.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.557e-05/2.081, allocations: 24 kB / 0.8387 GB, free: 10.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=603) (initialization): time 0.01517/2.096, allocations: 6.226 MB / 0.8448 GB, free: 4.844 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.571e-05/2.096, allocations: 37.25 kB / 0.8449 GB, free: 4.809 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/2.096, allocations: 76 kB / 0.8449 GB, free: 4.734 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/2.097, allocations: 418.2 kB / 0.8453 GB, free: 4.375 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005148/2.103, allocations: 1.067 MB / 0.8464 GB, free: 3.449 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008024/2.111, allocations: 4.121 MB / 0.8504 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004533/2.115, allocations: 0.6228 MB / 0.851 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007234/2.116, allocations: 247.4 kB / 0.8512 GB, free: 15.04 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.0009059/2.117, allocations: 422.3 kB / 0.8516 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000727/2.118, allocations: 276.3 kB / 0.8519 GB, free: 14.35 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008221/2.126, allocations: 3.66 MB / 0.8555 GB, free: 11.26 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006015/2.132, allocations: 2.868 MB / 0.8583 GB, free: 8.781 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/2.132, allocations: 7.797 kB / 0.8583 GB, free: 8.777 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.598e-05/2.132, allocations: 11.77 kB / 0.8583 GB, free: 8.777 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02386/2.156, allocations: 10.33 MB / 0.8684 GB, free: 272 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/2.156, allocations: 0 / 0.8684 GB, free: 272 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2831/2.439, allocations: 428.2 kB / 0.8688 GB, free: 77.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/2.44, allocations: 314 kB / 0.8691 GB, free: 77.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003699/2.441, allocations: 50.5 kB / 0.8691 GB, free: 77.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006338/2.447, allocations: 3.862 MB / 0.8729 GB, free: 75.85 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.396e-06/2.447, allocations: 1.984 kB / 0.8729 GB, free: 75.85 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/2.457, allocations: 5.326 MB / 0.8781 GB, free: 75.47 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/2.459, allocations: 0.634 MB / 0.8787 GB, free: 75.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004503/2.46, allocations: 45.06 kB / 0.8788 GB, free: 75.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/2.461, allocations: 136.7 kB / 0.8789 GB, free: 75.26 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/2.462, allocations: 154.3 kB / 0.8791 GB, free: 75.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/2.462, allocations: 73.36 kB / 0.8791 GB, free: 75.26 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00406/2.466, allocations: 1.915 MB / 0.881 GB, free: 75.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.06e-06/2.466, allocations: 0 / 0.881 GB, free: 75.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007588/2.474, allocations: 1.986 MB / 0.8829 GB, free: 74.82 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.0008538/2.474, allocations: 283.1 kB / 0.8832 GB, free: 74.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009192/2.484, allocations: 4.528 MB / 0.8876 GB, free: 74.53 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.588e-06/2.484, allocations: 1.125 kB / 0.8876 GB, free: 74.53 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003455/2.487, allocations: 1.741 MB / 0.8893 GB, free: 74.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/2.491, allocations: 0.6165 MB / 0.8899 GB, free: 74.37 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02429/2.515, allocations: 10.62 MB / 0.9003 GB, free: 72.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008324/2.523, allocations: 5.626 MB / 0.9058 GB, free: 71.42 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/2.525, allocations: 263.1 kB / 0.9061 GB, free: 71.41 MB / 474.7 MB Notification: Performance of SimCode: time 1.609e-06/2.525, allocations: 3.938 kB / 0.9061 GB, free: 71.41 MB / 474.7 MB Notification: Performance of Templates: time 0.1568/2.681, allocations: 125.8 MB / 1.029 GB, free: 1.605 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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))); ^ 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