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.SMPM_OpenCircuit.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.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.001484/0.001484, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.917/1.917, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001145/0.001144, allocations: 90.88 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003926, allocations: 12 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3295, allocations: 47.56 MB / 374.7 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5183/0.8478, allocations: 149.1 MB / 0.5114 GB, free: 65.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.8482, allocations: 101.2 kB / 0.5115 GB, free: 65.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017/1.865, allocations: 232.3 MB / 0.7384 GB, free: 64.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.865, allocations: 0 / 0.7384 GB, free: 64.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005334/1.866, allocations: 166.3 kB / 0.7385 GB, free: 64.25 MB / 426.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.03158/1.897, allocations: 7.257 MB / 0.7456 GB, free: 60.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/1.897, allocations: 7.656 kB / 0.7456 GB, free: 60.92 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004977/1.902, allocations: 1.164 MB / 0.7468 GB, free: 60.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03171/1.934, allocations: 3.676 MB / 0.7504 GB, free: 59.49 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/1.953, allocations: 5.962 MB / 0.7562 GB, free: 54.49 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006255/1.954, allocations: 0.5238 MB / 0.7567 GB, free: 53.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003061/1.957, allocations: 0.6979 MB / 0.7574 GB, free: 53.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0322/1.989, allocations: 11.45 MB / 0.7686 GB, free: 42.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003412/1.99, allocations: 16.23 kB / 0.7686 GB, free: 42.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001733/1.992, allocations: 303.7 kB / 0.7689 GB, free: 41.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006137/1.992, allocations: 490.6 kB / 0.7693 GB, free: 41.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02982/2.022, allocations: 10.66 MB / 0.7797 GB, free: 30.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4129/2.435, allocations: 38.32 MB / 0.8172 GB, free: 45.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02339/2.458, allocations: 18.46 MB / 0.8352 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03785/2.496, allocations: 13.71 MB / 0.8486 GB, free: 47.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.184e-05/2.496, allocations: 69.75 kB / 0.8487 GB, free: 47.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=404): time 9.999e-06/2.497, allocations: 0 / 0.8487 GB, free: 47.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=420): time 0.07738/2.574, allocations: 22.49 MB / 0.8706 GB, free: 44.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002899/2.577, allocations: 1.962 MB / 0.8725 GB, free: 42.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006361/2.583, allocations: 2.971 MB / 0.8754 GB, free: 42.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000951/2.584, allocations: 86.17 kB / 0.8755 GB, free: 42.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/2.587, allocations: 3.009 MB / 0.8785 GB, free: 40.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/2.589, allocations: 1.419 MB / 0.8798 GB, free: 39.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006529/2.589, allocations: 107.3 kB / 0.8799 GB, free: 39.78 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004606/2.59, allocations: 0.5347 MB / 0.8805 GB, free: 39.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006988/2.597, allocations: 2.905 MB / 0.8833 GB, free: 39.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008522/2.605, allocations: 4.893 MB / 0.8881 GB, free: 35.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009427/2.615, allocations: 3.793 MB / 0.8918 GB, free: 33.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-05/2.615, allocations: 20.25 kB / 0.8918 GB, free: 33.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02434/2.639, allocations: 9.248 MB / 0.9008 GB, free: 30.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.232e-05/2.64, allocations: 35.5 kB / 0.9009 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/2.64, allocations: 66.53 kB / 0.9009 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007871/2.648, allocations: 2.477 MB / 0.9033 GB, free: 29.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007454/2.655, allocations: 1.059 MB / 0.9044 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/2.665, allocations: 5.413 MB / 0.9097 GB, free: 26.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00646/2.672, allocations: 325.7 kB / 0.91 GB, free: 26.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/2.673, allocations: 275 kB / 0.9102 GB, free: 26.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * 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.00716/2.68, allocations: 2.499 MB / 0.9127 GB, free: 24.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/2.682, allocations: 412 kB / 0.9131 GB, free: 24.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/2.704, allocations: 7.919 MB / 0.9208 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001462/2.704, allocations: 92.47 kB / 0.9209 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/2.704, allocations: 3 kB / 0.9209 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/2.704, allocations: 22.19 kB / 0.9209 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04973/2.754, allocations: 19.57 MB / 0.94 GB, free: 9.938 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.073e-05/2.754, allocations: 4 kB / 0.94 GB, free: 9.934 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004853/2.759, allocations: 0.542 MB / 0.9406 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009076/2.768, allocations: 2.444 MB / 0.943 GB, free: 7.508 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/2.769, allocations: 93.7 kB / 0.943 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/2.783, allocations: 7.199 MB / 0.9501 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002914/2.786, allocations: 1.899 MB / 0.9519 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0339/2.82, allocations: 12.4 MB / 0.964 GB, free: 3.488 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004356/2.825, allocations: 1.089 MB / 0.9651 GB, free: 2.488 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/2.826, allocations: 68 kB / 0.9652 GB, free: 2.422 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003933/2.83, allocations: 204.5 kB / 0.9654 GB, free: 2.277 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/2.831, allocations: 323.6 kB / 0.9657 GB, free: 2.074 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004764/2.832, allocations: 125.7 kB / 0.9658 GB, free: 1.961 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005601/2.837, allocations: 2.19 MB / 0.9679 GB, free: 140 kB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.837, allocations: 0 / 0.9679 GB, free: 140 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.01792/2.855, allocations: 1.951 MB / 0.9698 GB, free: 0 / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 264 * 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,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.03484/2.89, allocations: 14.9 MB / 0.9844 GB, free: 2.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3421/3.232, allocations: 7.398 MB / 0.9916 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/3.232, allocations: 0 / 0.9916 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01104/3.243, allocations: 3.657 MB / 0.9952 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007822/3.251, allocations: 0.8841 MB / 0.9961 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1293/3.38, allocations: 88.83 MB / 1.083 GB, free: 48 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009744/3.39, allocations: 4.55 MB / 1.087 GB, free: 47.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00735/3.398, allocations: 2.59 MB / 1.09 GB, free: 45.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.563e-06/3.398, allocations: 4 kB / 1.09 GB, free: 45.76 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/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_SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_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_3_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))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFMU.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_SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o] Error 1