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_Mains.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_Mains,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.001516/0.001516, allocations: 186.5 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.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001121/0.001121, allocations: 93.5 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000405/0.0004049, allocations: 16 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3285, allocations: 47.56 MB / 374.7 MB, free: 45.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5219/0.8505, allocations: 158.5 MB / 0.5207 GB, free: 66.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004173/0.8509, allocations: 108.3 kB / 0.5208 GB, free: 66.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.877/2.728, allocations: 388.6 MB / 0.9003 GB, free: 40.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.056e-06/2.728, allocations: 0 / 0.9003 GB, free: 40.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001027/2.729, allocations: 281.9 kB / 0.9005 GB, free: 40.5 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05558/2.784, allocations: 11.95 MB / 0.9122 GB, free: 36.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/2.785, allocations: 11.09 kB / 0.9122 GB, free: 36.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009191/2.794, allocations: 1.965 MB / 0.9141 GB, free: 36.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04413/2.838, allocations: 5.24 MB / 0.9192 GB, free: 35.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03105/2.869, allocations: 9.669 MB / 0.9287 GB, free: 33.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001268/2.87, allocations: 0.8944 MB / 0.9296 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005644/2.876, allocations: 1.18 MB / 0.9307 GB, free: 32.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06308/2.939, allocations: 19.58 MB / 0.9498 GB, free: 18.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007616/2.94, allocations: 19.36 kB / 0.9499 GB, free: 18.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005143/2.945, allocations: 0.5033 MB / 0.9504 GB, free: 18.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001115/2.946, allocations: 0.7704 MB / 0.9511 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05831/3.005, allocations: 17.4 MB / 0.9681 GB, free: 2.348 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5419/3.546, allocations: 63.38 MB / 1.03 GB, free: 35.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03759/3.584, allocations: 22.42 MB / 1.052 GB, free: 40.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06144/3.646, allocations: 22.91 MB / 1.074 GB, free: 35.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/3.646, allocations: 106.1 kB / 1.074 GB, free: 35.08 MB / 474.7 MB Notification: Performance of pre-optimization done (n=755): time 1.338e-05/3.646, allocations: 0 / 1.074 GB, free: 35.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=765): time 0.1289/3.775, allocations: 41.64 MB / 1.115 GB, free: 12.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/3.775, allocations: 154.1 kB / 1.115 GB, free: 12.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008986/3.784, allocations: 3.907 MB / 1.119 GB, free: 11.33 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001624/3.786, allocations: 132.2 kB / 1.119 GB, free: 11.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00321/3.789, allocations: 4.506 MB / 1.124 GB, free: 7.715 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004198/3.793, allocations: 2.536 MB / 1.126 GB, free: 5.738 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/3.794, allocations: 147.8 kB / 1.126 GB, free: 5.625 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007738/3.795, allocations: 0.6379 MB / 1.127 GB, free: 5.164 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01325/3.808, allocations: 4.84 MB / 1.131 GB, free: 3.176 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01568/3.824, allocations: 6.69 MB / 1.138 GB, free: 14.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01603/3.84, allocations: 5.987 MB / 1.144 GB, free: 12.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.772e-05/3.84, allocations: 15.62 kB / 1.144 GB, free: 12.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.04293/3.883, allocations: 14.24 MB / 1.158 GB, free: 1.348 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.531e-05/3.883, allocations: 28.94 kB / 1.158 GB, free: 1.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001473/3.883, allocations: 54 kB / 1.158 GB, free: 1.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01228/3.896, allocations: 3.376 MB / 1.161 GB, free: 14.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01231/3.908, allocations: 1.498 MB / 1.163 GB, free: 13.34 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02354/3.932, allocations: 13.88 MB / 1.176 GB, free: 0 / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4023/4.334, allocations: 491.5 kB / 1.177 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002339/4.337, allocations: 341 kB / 1.177 GB, free: 100.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (792): * Single equations (assignments): 727 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01362/4.35, allocations: 4.266 MB / 1.181 GB, free: 100.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002259/4.352, allocations: 0.5905 MB / 1.182 GB, free: 100.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0393/4.392, allocations: 13.74 MB / 1.195 GB, free: 99.95 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02905/4.421, allocations: 10.43 MB / 1.205 GB, free: 99.68 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-05/4.421, allocations: 4.688 kB / 1.205 GB, free: 99.68 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001845/4.421, allocations: 35.91 kB / 1.205 GB, free: 99.68 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07248/4.494, allocations: 28.2 MB / 1.233 GB, free: 94.28 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.899e-05/4.494, allocations: 6.312 kB / 1.233 GB, free: 94.28 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008429/4.502, allocations: 0.9647 MB / 1.234 GB, free: 94.25 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01169/4.514, allocations: 3.476 MB / 1.237 GB, free: 93.18 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001641/4.516, allocations: 169.4 kB / 1.237 GB, free: 93.09 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0244/4.54, allocations: 18.35 MB / 1.255 GB, free: 79.46 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/4.54, allocations: 4.812 kB / 1.255 GB, free: 79.46 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05068/4.591, allocations: 21.02 MB / 1.276 GB, free: 69.55 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006181/4.597, allocations: 1.741 MB / 1.278 GB, free: 68.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002111/4.599, allocations: 120.8 kB / 1.278 GB, free: 68.68 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006736/4.606, allocations: 314.9 kB / 1.278 GB, free: 68.6 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00214/4.608, allocations: 0.5573 MB / 1.279 GB, free: 68.48 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008019/4.609, allocations: 210.1 kB / 1.279 GB, free: 68.43 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007011/4.616, allocations: 2.94 MB / 1.282 GB, free: 67.33 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.775e-06/4.616, allocations: 0 / 1.282 GB, free: 67.33 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01298/4.629, allocations: 2.161 MB / 1.284 GB, free: 67.1 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.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 (513): * Single equations (assignments): 447 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05424/4.683, allocations: 23.15 MB / 1.306 GB, free: 49.19 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03249/4.716, allocations: 12.23 MB / 1.318 GB, free: 38.53 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/4.716, allocations: 1.219 kB / 1.318 GB, free: 38.53 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01869/4.735, allocations: 6.705 MB / 1.325 GB, free: 32.64 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01169/4.746, allocations: 1.309 MB / 1.326 GB, free: 31.67 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5776/5.324, allocations: 109.8 MB / 1.433 GB, free: 41 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/5.339, allocations: 7.537 MB / 1.441 GB, free: 40.11 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01143/5.351, allocations: 4.502 MB / 1.445 GB, free: 40.1 MB / 0.4949 GB Notification: Performance of SimCode: time 1.773e-06/5.351, allocations: 2.297 kB / 1.445 GB, free: 40.1 MB / 0.4949 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_SMPM_MainsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp342 = 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_MainsFunctions.cpp:637:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp342 = 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_MainsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFMU.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_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o] Error 1