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.002208/0.002207, allocations: 182 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001082/0.001082, allocations: 100 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005422/0.0005424, allocations: 12 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3343, allocations: 47.57 MB / 374.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04124/0.3756, allocations: 29.88 MB / 404.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02368/0.3994, allocations: 9.653 MB / 414.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007401/0.4068, allocations: 219.2 kB / 414.4 MB, free: 8.988 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008891/0.4157, allocations: 1.994 MB / 416.4 MB, free: 6.984 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01498/0.4308, allocations: 3.441 MB / 419.8 MB, free: 3.539 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008116/0.4389, allocations: 1.55 MB / 421.4 MB, free: 2.004 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02774/0.4667, allocations: 11.29 MB / 432.7 MB, free: 6.695 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05751/0.5242, allocations: 20.18 MB / 452.9 MB, free: 2.402 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01209/0.5364, allocations: 4.859 MB / 457.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01302/0.5495, allocations: 5.357 MB / 463.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00412/0.5536, allocations: 0.793 MB / 463.9 MB, free: 7.355 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007025/0.5607, allocations: 1.109 MB / 465 MB, free: 6.246 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005564/0.5663, allocations: 2.465 MB / 467.4 MB, free: 3.773 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006277/0.5726, allocations: 2.66 MB / 470.1 MB, free: 1.102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03711/0.6098, allocations: 22.55 MB / 492.7 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.6098, allocations: 0 / 492.7 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.6098, allocations: 7.938 kB / 492.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000773/0.6106, allocations: 4 kB / 492.7 MB, free: 10.48 MB / 378.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.6011/1.212, allocations: 13.41 MB / 0.4942 GB, free: 87.16 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.212, allocations: 11.81 kB / 0.4942 GB, free: 87.16 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007886/1.22, allocations: 1.963 MB / 0.4961 GB, free: 86.21 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06205/1.282, allocations: 7.304 MB / 0.5033 GB, free: 83.41 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02418/1.306, allocations: 7.613 MB / 0.5107 GB, free: 78.28 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001209/1.307, allocations: 0.9113 MB / 0.5116 GB, free: 77.87 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005285/1.313, allocations: 1.213 MB / 0.5128 GB, free: 77.46 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06104/1.374, allocations: 19.05 MB / 0.5314 GB, free: 59.2 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006314/1.374, allocations: 19.89 kB / 0.5314 GB, free: 59.18 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004122/1.378, allocations: 0.4963 MB / 0.5319 GB, free: 58.69 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008877/1.379, allocations: 0.6834 MB / 0.5326 GB, free: 58.01 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05116/1.431, allocations: 17.62 MB / 0.5498 GB, free: 40.38 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1527/1.583, allocations: 63.94 MB / 0.6122 GB, free: 7.238 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0592/1.643, allocations: 38.64 MB / 0.6499 GB, free: 11.86 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.344/1.987, allocations: 12.05 MB / 0.6617 GB, free: 151.6 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.865e-05/1.987, allocations: 73.75 kB / 0.6618 GB, free: 151.6 MB / 458.8 MB Notification: Performance of pre-optimization done (n=416): time 8.035e-06/1.987, allocations: 0 / 0.6618 GB, free: 151.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=426): time 0.07171/2.059, allocations: 20.53 MB / 0.6818 GB, free: 144.7 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/2.059, allocations: 123.7 kB / 0.682 GB, free: 144.6 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/2.07, allocations: 5.155 MB / 0.687 GB, free: 142.7 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008185/2.071, allocations: 94.97 kB / 0.6871 GB, free: 142.6 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003911/2.075, allocations: 5.237 MB / 0.6922 GB, free: 138.5 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002146/2.077, allocations: 1.479 MB / 0.6936 GB, free: 137.4 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007795/2.078, allocations: 136.2 kB / 0.6938 GB, free: 137.3 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005063/2.078, allocations: 0.5844 MB / 0.6943 GB, free: 136.9 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007892/2.086, allocations: 2.961 MB / 0.6972 GB, free: 135.7 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009772/2.096, allocations: 5.664 MB / 0.7028 GB, free: 131.1 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/2.106, allocations: 4.189 MB / 0.7068 GB, free: 129.1 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.845e-05/2.107, allocations: 35.94 kB / 0.7069 GB, free: 129 MB / 458.8 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02703/2.134, allocations: 9.826 MB / 0.7165 GB, free: 120.4 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.919e-05/2.134, allocations: 44 kB / 0.7165 GB, free: 120.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/2.134, allocations: 92 kB / 0.7166 GB, free: 120.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005073/2.139, allocations: 1.131 MB / 0.7177 GB, free: 119.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/2.149, allocations: 1.546 MB / 0.7192 GB, free: 117.6 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/2.172, allocations: 12.74 MB / 0.7317 GB, free: 104.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008077/2.18, allocations: 371.6 kB / 0.732 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/2.182, allocations: 344 kB / 0.7323 GB, free: 103.6 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * 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 (813): * Single equations (assignments): 804 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01053/2.192, allocations: 4.29 MB / 0.7365 GB, free: 99.32 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/2.194, allocations: 0.5519 MB / 0.7371 GB, free: 98.77 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02058/2.215, allocations: 7.296 MB / 0.7442 GB, free: 91.38 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01145/2.226, allocations: 4.325 MB / 0.7484 GB, free: 87 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-05/2.226, allocations: 12 kB / 0.7484 GB, free: 86.99 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.936e-05/2.226, allocations: 27.84 kB / 0.7485 GB, free: 86.96 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04466/2.271, allocations: 17.24 MB / 0.7653 GB, free: 69.62 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.637e-05/2.271, allocations: 4 kB / 0.7653 GB, free: 69.61 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005859/2.277, allocations: 0.7141 MB / 0.766 GB, free: 68.9 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005412/2.282, allocations: 1.172 MB / 0.7671 GB, free: 67.71 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007716/2.283, allocations: 99.97 kB / 0.7672 GB, free: 67.61 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02541/2.309, allocations: 16.26 MB / 0.7831 GB, free: 50.57 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/2.309, allocations: 9.422 kB / 0.7831 GB, free: 50.57 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02481/2.333, allocations: 11.18 MB / 0.794 GB, free: 39.12 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003815/2.337, allocations: 1.139 MB / 0.7951 GB, free: 37.96 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001425/2.339, allocations: 87.95 kB / 0.7952 GB, free: 37.88 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005332/2.344, allocations: 219.8 kB / 0.7954 GB, free: 37.66 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001601/2.346, allocations: 311.4 kB / 0.7957 GB, free: 37.36 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004501/2.346, allocations: 132.1 kB / 0.7959 GB, free: 37.23 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007394/2.354, allocations: 3.424 MB / 0.7992 GB, free: 33.82 MB / 458.8 MB Notification: Performance of sort global known variables: time 7.51e-07/2.354, allocations: 0 / 0.7992 GB, free: 33.82 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01101/2.365, allocations: 1.99 MB / 0.8012 GB, free: 31.84 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.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 (364): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02618/2.391, allocations: 12.89 MB / 0.8137 GB, free: 18.71 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01917/2.41, allocations: 7.952 MB / 0.8215 GB, free: 10.67 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/2.41, allocations: 7.938 kB / 0.8215 GB, free: 10.66 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01072/2.421, allocations: 4.162 MB / 0.8256 GB, free: 6.422 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3139/2.735, allocations: 1.308 MB / 0.8269 GB, free: 149.7 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2049/2.94, allocations: 123.5 MB / 0.9474 GB, free: 45.3 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01489/2.955, allocations: 7.415 MB / 0.9547 GB, free: 37.85 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01033/2.965, allocations: 4.471 MB / 0.959 GB, free: 33.38 MB / 458.8 MB Notification: Performance of SimCode: time 1.273e-06/2.965, allocations: 8 kB / 0.959 GB, free: 33.38 MB / 458.8 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=5 -DSUNDIALS_MINOR_VERSION=4 -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:220:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp136 = 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:220:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp136 = 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