Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 195 MB / 203.2 MB, free: 6.762 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.221e-05, allocations: 2.75 kB / 249.6 MB, free: 5.535 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07748, allocations: 44.5 MB / 294.1 MB, free: 11.15 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4765/0.554, allocations: 142.1 MB / 436.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.5543, allocations: 93.19 kB / 436.3 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.177/1.731, allocations: 229.8 MB / 0.6505 GB, free: 44.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.203e-06/1.731, allocations: 0 / 0.6505 GB, free: 44.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000557/1.732, allocations: 166.1 kB / 0.6506 GB, free: 44.4 MB / 410.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.02738/1.759, allocations: 6.777 MB / 0.6573 GB, free: 42.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/1.759, allocations: 10.28 kB / 0.6573 GB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02839/1.788, allocations: 3.648 MB / 0.6608 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01842/1.806, allocations: 5.925 MB / 0.6666 GB, free: 40.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005326/1.807, allocations: 234.9 kB / 0.6668 GB, free: 40.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00303/1.81, allocations: 415.4 kB / 0.6672 GB, free: 40.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02376/1.834, allocations: 9.152 MB / 0.6762 GB, free: 40.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03126/1.865, allocations: 10.2 MB / 0.6861 GB, free: 40.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004056/1.865, allocations: 24.36 kB / 0.6862 GB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00248/1.868, allocations: 5.328 kB / 0.6862 GB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006184/1.868, allocations: 492.1 kB / 0.6866 GB, free: 40.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08084/1.949, allocations: 37.7 MB / 0.7234 GB, free: 30.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01915/1.969, allocations: 18.17 MB / 0.7412 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008428/1.977, allocations: 4.197 MB / 0.7453 GB, free: 13.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03632/2.013, allocations: 14.02 MB / 0.759 GB, free: 6.047 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.162e-05/2.013, allocations: 72.34 kB / 0.7591 GB, free: 5.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=399): time 9.541e-06/2.014, allocations: 3.75 kB / 0.7591 GB, free: 5.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=415): time 0.05011/2.064, allocations: 16.29 MB / 0.775 GB, free: 15.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/2.064, allocations: 86.25 kB / 0.775 GB, free: 14.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006497/2.07, allocations: 2.437 MB / 0.7774 GB, free: 12.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008345/2.071, allocations: 25.7 kB / 0.7774 GB, free: 12.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003231/2.074, allocations: 3.069 MB / 0.7804 GB, free: 9.988 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002434/2.077, allocations: 1.351 MB / 0.7818 GB, free: 8.746 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007789/2.078, allocations: 0 / 0.7818 GB, free: 8.746 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007156/2.078, allocations: 0.5344 MB / 0.7823 GB, free: 8.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006902/2.085, allocations: 2.883 MB / 0.7851 GB, free: 5.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009436/2.095, allocations: 4.847 MB / 0.7898 GB, free: 328 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/2.11, allocations: 4.609 MB / 0.7943 GB, free: 12.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.58e-05/2.11, allocations: 20 kB / 0.7944 GB, free: 12.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02694/2.137, allocations: 9.497 MB / 0.8036 GB, free: 5.023 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/2.137, allocations: 39.95 kB / 0.8037 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/2.137, allocations: 73.11 kB / 0.8037 GB, free: 4.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007105/2.144, allocations: 2.445 MB / 0.8061 GB, free: 2.875 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005503/2.15, allocations: 1.082 MB / 0.8072 GB, free: 2.043 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2774/2.427, allocations: 5.72 MB / 0.8128 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005876/2.433, allocations: 250.3 kB / 0.813 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/2.435, allocations: 266.8 kB / 0.8133 GB, free: 68.36 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.002862/2.438, allocations: 331.2 kB / 0.8136 GB, free: 68.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/2.439, allocations: 381.2 kB / 0.8139 GB, free: 68.24 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02442/2.464, allocations: 8.42 MB / 0.8222 GB, free: 68.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001534/2.464, allocations: 98.41 kB / 0.8223 GB, free: 68.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/2.464, allocations: 3.703 kB / 0.8223 GB, free: 68.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.571e-05/2.464, allocations: 17.62 kB / 0.8223 GB, free: 68.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04538/2.51, allocations: 19.43 MB / 0.8413 GB, free: 67.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.55e-05/2.51, allocations: 7.812 kB / 0.8413 GB, free: 67.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0036/2.513, allocations: 0.5648 MB / 0.8418 GB, free: 67.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006845/2.52, allocations: 2.409 MB / 0.8442 GB, free: 67.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009053/2.521, allocations: 47.27 kB / 0.8442 GB, free: 67.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/2.531, allocations: 7.22 MB / 0.8513 GB, free: 64.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002003/2.533, allocations: 1.807 MB / 0.853 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02757/2.561, allocations: 13.01 MB / 0.8657 GB, free: 62.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003737/2.565, allocations: 1.077 MB / 0.8668 GB, free: 62.01 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00186/2.567, allocations: 7.656 kB / 0.8668 GB, free: 62.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004186/2.571, allocations: 179.2 kB / 0.867 GB, free: 62.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/2.572, allocations: 323.1 kB / 0.8673 GB, free: 62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008359/2.573, allocations: 118.4 kB / 0.8674 GB, free: 62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004472/2.578, allocations: 1.742 MB / 0.8691 GB, free: 61.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.255e-06/2.578, allocations: 3.281 kB / 0.8691 GB, free: 61.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008498/2.586, allocations: 1.204 MB / 0.8703 GB, free: 61.85 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.001786/2.588, allocations: 0.5225 MB / 0.8708 GB, free: 61.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01608/2.604, allocations: 7.217 MB / 0.8778 GB, free: 59.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/2.604, allocations: 5.031 kB / 0.8778 GB, free: 59.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008871/2.613, allocations: 3.641 MB / 0.8814 GB, free: 58.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005922/2.619, allocations: 0.6979 MB / 0.8821 GB, free: 58.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03173/2.651, allocations: 12.07 MB / 0.8938 GB, free: 53.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008636/2.66, allocations: 4.551 MB / 0.8983 GB, free: 51.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001876/2.662, allocations: 313.2 kB / 0.8986 GB, free: 51.52 MB / 442.7 MB Notification: Performance of SimCode: time 2.277e-06/2.662, allocations: 0 / 0.8986 GB, free: 51.52 MB / 442.7 MB Notification: Performance of Templates: time 0.564/3.226, allocations: 232 MB / 1.125 GB, free: 9.688 MB / 474.7 MB make -j1 -f Modelica_3.2.2_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=5 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"." -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1