Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.001614/0.001613, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.00113/0.001129, allocations: 80.45 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005163/0.0005163, allocations: 8 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3289, allocations: 47.57 MB / 374.7 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5276/0.8565, allocations: 156.2 MB / 0.5184 GB, free: 66.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/0.8569, allocations: 106.5 kB / 0.5185 GB, free: 66.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.8/2.657, allocations: 384.8 MB / 0.8944 GB, free: 34.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.825e-06/2.657, allocations: 3 kB / 0.8944 GB, free: 34.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009124/2.658, allocations: 294.8 kB / 0.8946 GB, free: 34.73 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05419/2.712, allocations: 11.7 MB / 0.9061 GB, free: 30.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/2.712, allocations: 7.094 kB / 0.9061 GB, free: 30.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008919/2.721, allocations: 1.804 MB / 0.9078 GB, free: 30.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05379/2.775, allocations: 6.373 MB / 0.9141 GB, free: 29.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03412/2.809, allocations: 9.491 MB / 0.9233 GB, free: 28.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001478/2.81, allocations: 0.9252 MB / 0.9242 GB, free: 28.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006282/2.817, allocations: 1.205 MB / 0.9254 GB, free: 28.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06727/2.884, allocations: 20.55 MB / 0.9455 GB, free: 17.63 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008381/2.885, allocations: 15.81 kB / 0.9455 GB, free: 17.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005492/2.89, allocations: 0.5169 MB / 0.946 GB, free: 17.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001248/2.892, allocations: 0.8428 MB / 0.9468 GB, free: 16.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.062/2.954, allocations: 18.69 MB / 0.9651 GB, free: 176 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5463/3.5, allocations: 64.03 MB / 1.028 GB, free: 31.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06003/3.56, allocations: 45.87 MB / 1.072 GB, free: 28.26 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06892/3.629, allocations: 23.65 MB / 1.095 GB, free: 23.94 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/3.629, allocations: 100.7 kB / 1.096 GB, free: 23.85 MB / 490.7 MB Notification: Performance of pre-optimization done (n=771): time 1.142e-05/3.629, allocations: 2.25 kB / 1.096 GB, free: 23.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=811): time 0.1896/3.819, allocations: 46.62 MB / 1.141 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/3.819, allocations: 128 kB / 1.141 GB, free: 19.28 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009422/3.828, allocations: 3.597 MB / 1.145 GB, free: 17.93 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001825/3.83, allocations: 135.6 kB / 1.145 GB, free: 17.81 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003584/3.834, allocations: 4.704 MB / 1.149 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004599/3.839, allocations: 2.684 MB / 1.152 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001957/3.841, allocations: 162.2 kB / 1.152 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001073/3.842, allocations: 0.6738 MB / 1.153 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01468/3.856, allocations: 5.138 MB / 1.158 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01807/3.874, allocations: 7.513 MB / 1.165 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4084/4.283, allocations: 6.538 MB / 1.172 GB, free: 95.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.36e-05/4.283, allocations: 24.38 kB / 1.172 GB, free: 95.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.04528/4.328, allocations: 15.46 MB / 1.187 GB, free: 95.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/4.328, allocations: 38.73 kB / 1.187 GB, free: 95.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/4.329, allocations: 69.91 kB / 1.187 GB, free: 95.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01451/4.343, allocations: 4.127 MB / 1.191 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01342/4.357, allocations: 1.646 MB / 1.193 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0206/4.377, allocations: 12.21 MB / 1.204 GB, free: 90.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009944/4.387, allocations: 447 kB / 1.205 GB, free: 90.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002612/4.39, allocations: 395.6 kB / 1.205 GB, free: 90.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (854): * Single equations (assignments): 798 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01393/4.404, allocations: 4.394 MB / 1.21 GB, free: 90.28 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003208/4.407, allocations: 0.5811 MB / 1.21 GB, free: 90.28 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04569/4.453, allocations: 14.45 MB / 1.224 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000321/4.453, allocations: 189.1 kB / 1.224 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/4.453, allocations: 3.25 kB / 1.224 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001672/4.453, allocations: 34.17 kB / 1.224 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08288/4.536, allocations: 28.81 MB / 1.253 GB, free: 79.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001142/4.536, allocations: 5.625 kB / 1.253 GB, free: 79.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00979/4.546, allocations: 1.053 MB / 1.254 GB, free: 79.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01312/4.559, allocations: 4.019 MB / 1.258 GB, free: 78.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002031/4.561, allocations: 173 kB / 1.258 GB, free: 78.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0196/4.581, allocations: 12.07 MB / 1.269 GB, free: 70.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/4.581, allocations: 3.688 kB / 1.269 GB, free: 70.17 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05655/4.638, allocations: 21.88 MB / 1.291 GB, free: 58.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006483/4.644, allocations: 1.748 MB / 1.293 GB, free: 57.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003544/4.648, allocations: 119.9 kB / 1.293 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008293/4.656, allocations: 329.7 kB / 1.293 GB, free: 57.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002895/4.659, allocations: 0.5704 MB / 1.294 GB, free: 56.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001581/4.661, allocations: 219.6 kB / 1.294 GB, free: 56.51 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006891/4.668, allocations: 2.694 MB / 1.296 GB, free: 54.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.51e-07/4.668, allocations: 0 / 1.296 GB, free: 54.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01287/4.681, allocations: 2.151 MB / 1.298 GB, free: 52.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.05737/4.738, allocations: 23.6 MB / 1.322 GB, free: 31.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0347/4.773, allocations: 13.08 MB / 1.334 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/4.773, allocations: 4 kB / 1.334 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01955/4.792, allocations: 6.79 MB / 1.341 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01078/4.803, allocations: 1.175 MB / 1.342 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6156/5.419, allocations: 125.4 MB / 1.465 GB, free: 19.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01897/5.438, allocations: 7.743 MB / 1.472 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01292/5.451, allocations: 4.593 MB / 1.477 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.573e-06/5.451, allocations: 0 / 1.477 GB, free: 18.02 MB / 0.4948 GB 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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp301 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp301 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFMU.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1