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.001597/0.001597, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.109/2.109, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001146/0.001145, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.872e-05/5.891e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09595, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5402/0.6362, allocations: 158.4 MB / 0.5153 GB, free: 15.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/0.6366, allocations: 95.44 kB / 0.5153 GB, free: 15.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254/2.891, allocations: 388.3 MB / 0.8945 GB, free: 31.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.464e-06/2.891, allocations: 0 / 0.8945 GB, free: 31.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0012/2.892, allocations: 279.8 kB / 0.8948 GB, free: 31.65 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.05645/2.949, allocations: 11.24 MB / 0.9058 GB, free: 28.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/2.949, allocations: 12.16 kB / 0.9058 GB, free: 28.1 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009589/2.958, allocations: 1.946 MB / 0.9077 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04501/3.003, allocations: 5.201 MB / 0.9128 GB, free: 27.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03479/3.038, allocations: 9.633 MB / 0.9222 GB, free: 26.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001479/3.04, allocations: 0.9068 MB / 0.9231 GB, free: 26.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006257/3.046, allocations: 1.175 MB / 0.9242 GB, free: 26.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06852/3.115, allocations: 19.33 MB / 0.9431 GB, free: 24.53 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007763/3.116, allocations: 13.28 kB / 0.9431 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006013/3.122, allocations: 0.5097 MB / 0.9436 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001323/3.123, allocations: 0.777 MB / 0.9444 GB, free: 24.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05507/3.178, allocations: 17.07 MB / 0.961 GB, free: 18.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2198/3.398, allocations: 63.54 MB / 1.023 GB, free: 1.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4422/3.84, allocations: 22.39 MB / 1.045 GB, free: 48.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02086/3.861, allocations: 7.293 MB / 1.052 GB, free: 48.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07062/3.932, allocations: 22.82 MB / 1.074 GB, free: 47.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/3.932, allocations: 101.3 kB / 1.074 GB, free: 47.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=747): time 1.28e-05/3.932, allocations: 6.781 kB / 1.074 GB, free: 47.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=757): time 0.07972/4.012, allocations: 25.91 MB / 1.1 GB, free: 42.32 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/4.012, allocations: 141.7 kB / 1.1 GB, free: 42.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01012/4.022, allocations: 3.868 MB / 1.104 GB, free: 40.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001759/4.024, allocations: 127 kB / 1.104 GB, free: 40.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/4.028, allocations: 4.515 MB / 1.108 GB, free: 37.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004695/4.033, allocations: 2.52 MB / 1.111 GB, free: 35.16 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/4.034, allocations: 145.6 kB / 1.111 GB, free: 35.04 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009017/4.035, allocations: 0.6332 MB / 1.111 GB, free: 34.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01314/4.048, allocations: 4.723 MB / 1.116 GB, free: 32.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0152/4.063, allocations: 6.579 MB / 1.122 GB, free: 28.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/4.079, allocations: 5.882 MB / 1.128 GB, free: 26.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.533e-05/4.079, allocations: 20.41 kB / 1.128 GB, free: 26.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=1043) (initialization): time 0.04179/4.121, allocations: 13.94 MB / 1.142 GB, free: 20.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.887e-05/4.121, allocations: 27.12 kB / 1.142 GB, free: 20.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/4.121, allocations: 54.69 kB / 1.142 GB, free: 20.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/4.133, allocations: 3.352 MB / 1.145 GB, free: 19.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01207/4.145, allocations: 1.483 MB / 1.147 GB, free: 19.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01941/4.164, allocations: 13.83 MB / 1.16 GB, free: 9.398 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009709/4.174, allocations: 397.7 kB / 1.161 GB, free: 9.273 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002434/4.177, allocations: 341.8 kB / 1.161 GB, free: 9.207 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 721 * 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.004251/4.181, allocations: 0.5206 MB / 1.161 GB, free: 8.855 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003257/4.184, allocations: 0.5894 MB / 1.162 GB, free: 8.543 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0424/4.227, allocations: 13.5 MB / 1.175 GB, free: 14.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03193/4.259, allocations: 10.3 MB / 1.185 GB, free: 5.285 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.858e-05/4.259, allocations: 4 kB / 1.185 GB, free: 5.281 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000187/4.259, allocations: 40.11 kB / 1.185 GB, free: 5.273 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5082/4.767, allocations: 28 MB / 1.213 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001198/4.767, allocations: 4.312 kB / 1.213 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009565/4.777, allocations: 0.9463 MB / 1.213 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01405/4.791, allocations: 3.451 MB / 1.217 GB, free: 81.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002089/4.793, allocations: 164.7 kB / 1.217 GB, free: 81.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02686/4.82, allocations: 18.21 MB / 1.235 GB, free: 72.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/4.82, allocations: 7.062 kB / 1.235 GB, free: 72.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05673/4.877, allocations: 20.66 MB / 1.255 GB, free: 70.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007096/4.884, allocations: 1.724 MB / 1.257 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00249/4.887, allocations: 115.5 kB / 1.257 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007429/4.894, allocations: 317.2 kB / 1.257 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002518/4.897, allocations: 0.5544 MB / 1.258 GB, free: 70.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001514/4.898, allocations: 204.4 kB / 1.258 GB, free: 70.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008625/4.907, allocations: 2.903 MB / 1.261 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/4.907, allocations: 0 / 1.261 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01441/4.921, allocations: 2.147 MB / 1.263 GB, free: 69.98 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (505): * Single equations (assignments): 439 * 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%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05681/4.978, allocations: 23 MB / 1.285 GB, free: 66.81 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03334/5.012, allocations: 11.97 MB / 1.297 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/5.012, allocations: 6.438 kB / 1.297 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01946/5.031, allocations: 6.569 MB / 1.303 GB, free: 60.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01305/5.044, allocations: 1.304 MB / 1.305 GB, free: 60 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08395/5.128, allocations: 24.27 MB / 1.328 GB, free: 50.49 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01732/5.146, allocations: 7.536 MB / 1.336 GB, free: 47.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01142/5.157, allocations: 4.503 MB / 1.34 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/5.157, allocations: 2.625 kB / 1.34 GB, free: 44.14 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_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