Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.641e-05, allocations: 2.031 kB / 292.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.09145, allocations: 50.42 MB / 342.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4549/0.5464, allocations: 149 MB / 491.6 MB, free: 10.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5467, allocations: 97.59 kB / 491.7 MB, free: 10.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.236/1.783, allocations: 233.4 MB / 0.7081 GB, free: 40.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.07e-06/1.783, allocations: 0 / 0.7081 GB, free: 40.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000554/1.783, allocations: 155.6 kB / 0.7083 GB, free: 40.72 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0286/1.812, allocations: 6.795 MB / 0.7149 GB, free: 38.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/1.812, allocations: 7.5 kB / 0.7149 GB, free: 38.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02785/1.84, allocations: 3.658 MB / 0.7185 GB, free: 38.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01841/1.858, allocations: 6.041 MB / 0.7244 GB, free: 37.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005918/1.859, allocations: 0.5186 MB / 0.7249 GB, free: 37.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002942/1.862, allocations: 0.6858 MB / 0.7256 GB, free: 37.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03182/1.894, allocations: 10.94 MB / 0.7362 GB, free: 36.44 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003913/1.894, allocations: 16.12 kB / 0.7363 GB, free: 36.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002512/1.897, allocations: 308.1 kB / 0.7366 GB, free: 36.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006347/1.897, allocations: 0.5088 MB / 0.7371 GB, free: 36.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02678/1.924, allocations: 9.965 MB / 0.7468 GB, free: 36.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07409/1.998, allocations: 37.88 MB / 0.7838 GB, free: 21.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02165/2.02, allocations: 28.08 MB / 0.8112 GB, free: 10.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005/2.025, allocations: 2.564 MB / 0.8137 GB, free: 9.449 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01876/2.044, allocations: 7.936 MB / 0.8215 GB, free: 5.422 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.077e-05/2.044, allocations: 56.28 kB / 0.8215 GB, free: 5.367 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 6.231e-06/2.044, allocations: 3.812 kB / 0.8215 GB, free: 5.367 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.02021/2.064, allocations: 8.322 MB / 0.8296 GB, free: 1.434 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002701/2.067, allocations: 1.917 MB / 0.8315 GB, free: 15.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007714/2.075, allocations: 3.328 MB / 0.8348 GB, free: 14.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004585/2.075, allocations: 67.08 kB / 0.8348 GB, free: 14.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004161/2.079, allocations: 3.401 MB / 0.8381 GB, free: 11.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00177/2.081, allocations: 0.8216 MB / 0.8389 GB, free: 11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000835/2.082, allocations: 102.3 kB / 0.839 GB, free: 10.92 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007027/2.083, allocations: 0.4961 MB / 0.8395 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006256/2.089, allocations: 1.834 MB / 0.8413 GB, free: 9.801 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006572/2.096, allocations: 4.232 MB / 0.8455 GB, free: 5.793 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006044/2.102, allocations: 2.791 MB / 0.8482 GB, free: 3.875 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.394e-05/2.102, allocations: 24 kB / 0.8482 GB, free: 3.852 MB / 474.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.02258/2.125, allocations: 6.721 MB / 0.8548 GB, free: 15.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.34e-05/2.125, allocations: 44.19 kB / 0.8548 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/2.125, allocations: 88 kB / 0.8549 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002834/2.128, allocations: 0.7442 MB / 0.8556 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005497/2.133, allocations: 1.101 MB / 0.8567 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/2.143, allocations: 5.215 MB / 0.8618 GB, free: 9.258 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/2.149, allocations: 304 kB / 0.8621 GB, free: 9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/2.15, allocations: 267.1 kB / 0.8623 GB, free: 8.746 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001135/2.151, allocations: 458 kB / 0.8628 GB, free: 8.355 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/2.152, allocations: 387 kB / 0.8631 GB, free: 7.977 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/2.163, allocations: 4.21 MB / 0.8672 GB, free: 4.457 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.392e-05/2.163, allocations: 24 kB / 0.8673 GB, free: 4.434 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/2.163, allocations: 4 kB / 0.8673 GB, free: 4.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.476e-05/2.163, allocations: 11.25 kB / 0.8673 GB, free: 4.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.402/2.565, allocations: 14.15 MB / 0.8811 GB, free: 79.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.241e-05/2.565, allocations: 10.73 kB / 0.8811 GB, free: 79.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/2.568, allocations: 473.2 kB / 0.8816 GB, free: 79.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003062/2.571, allocations: 0.6908 MB / 0.8822 GB, free: 79.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005121/2.572, allocations: 63.31 kB / 0.8823 GB, free: 79.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/2.583, allocations: 6.944 MB / 0.8891 GB, free: 76.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002092/2.585, allocations: 1.856 MB / 0.8909 GB, free: 75.13 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/2.599, allocations: 7.73 MB / 0.8984 GB, free: 72.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002731/2.602, allocations: 0.7887 MB / 0.8992 GB, free: 72.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/2.603, allocations: 58.75 kB / 0.8993 GB, free: 72.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003359/2.607, allocations: 178.5 kB / 0.8994 GB, free: 72.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007562/2.607, allocations: 214.3 kB / 0.8996 GB, free: 72.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003035/2.608, allocations: 88.12 kB / 0.8997 GB, free: 72.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0058/2.613, allocations: 2.434 MB / 0.9021 GB, free: 72.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.088e-06/2.614, allocations: 0 / 0.9021 GB, free: 72.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007595/2.621, allocations: 1.341 MB / 0.9034 GB, free: 72.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/2.623, allocations: 0.736 MB / 0.9041 GB, free: 72.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01031/2.633, allocations: 4.842 MB / 0.9089 GB, free: 72.04 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/2.633, allocations: 5.547 kB / 0.9089 GB, free: 72.04 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005236/2.638, allocations: 2.298 MB / 0.9111 GB, free: 71.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006037/2.644, allocations: 0.9001 MB / 0.912 GB, free: 71.67 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03422/2.679, allocations: 10.4 MB / 0.9221 GB, free: 69.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01397/2.693, allocations: 4.495 MB / 0.9265 GB, free: 68.46 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00306/2.696, allocations: 333.3 kB / 0.9269 GB, free: 68.46 MB / 490.7 MB Notification: Performance of SimCode: time 2.749e-06/2.696, allocations: 0 / 0.9269 GB, free: 68.46 MB / 490.7 MB Notification: Performance of Templates: time 0.5712/3.267, allocations: 190.3 MB / 1.113 GB, free: 80.16 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp103 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp103 = 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1