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_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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.002275/0.002281, allocations: 181.6 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.188/2.188, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001066/0.001066, allocations: 90.69 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.946e-05, allocations: 8 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09767, allocations: 47.57 MB / 369.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.605/0.7028, allocations: 163.1 MB / 0.5198 GB, free: 11.31 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005922/0.7034, allocations: 97.56 kB / 0.5199 GB, free: 11.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384/3.088, allocations: 395.7 MB / 0.9064 GB, free: 24.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/3.088, allocations: 0 / 0.9064 GB, free: 24.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001127/3.089, allocations: 301.1 kB / 0.9067 GB, free: 24.35 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05626/3.145, allocations: 11.34 MB / 0.9177 GB, free: 20.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/3.145, allocations: 7.688 kB / 0.9177 GB, free: 20.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009926/3.155, allocations: 1.823 MB / 0.9195 GB, free: 20.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05436/3.21, allocations: 6.418 MB / 0.9258 GB, free: 19.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03833/3.248, allocations: 9.675 MB / 0.9352 GB, free: 18.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001835/3.25, allocations: 0.9488 MB / 0.9362 GB, free: 18.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007419/3.257, allocations: 1.236 MB / 0.9374 GB, free: 18.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07383/3.331, allocations: 20.66 MB / 0.9576 GB, free: 11.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008329/3.332, allocations: 25.3 kB / 0.9576 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006017/3.338, allocations: 0.5267 MB / 0.9581 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001412/3.34, allocations: 0.8543 MB / 0.9589 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08746/3.427, allocations: 20.24 MB / 0.9787 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6249/4.052, allocations: 65.86 MB / 1.043 GB, free: 26.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06626/4.118, allocations: 46.06 MB / 1.088 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02144/4.14, allocations: 7.79 MB / 1.096 GB, free: 23.38 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07522/4.215, allocations: 23.82 MB / 1.119 GB, free: 22.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/4.215, allocations: 106.9 kB / 1.119 GB, free: 22.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 1.281e-05/4.215, allocations: 0 / 1.119 GB, free: 22.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.09511/4.31, allocations: 26.98 MB / 1.145 GB, free: 11.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/4.311, allocations: 122.2 kB / 1.145 GB, free: 11.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/4.322, allocations: 3.772 MB / 1.149 GB, free: 10.06 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002014/4.324, allocations: 137 kB / 1.149 GB, free: 9.941 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004064/4.328, allocations: 4.865 MB / 1.154 GB, free: 6.172 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004791/4.333, allocations: 2.706 MB / 1.157 GB, free: 4.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/4.334, allocations: 162.8 kB / 1.157 GB, free: 3.945 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001129/4.336, allocations: 0.6808 MB / 1.157 GB, free: 3.469 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01445/4.35, allocations: 5.08 MB / 1.162 GB, free: 1.375 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02164/4.372, allocations: 7.728 MB / 1.17 GB, free: 13 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01844/4.39, allocations: 6.461 MB / 1.176 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/4.39, allocations: 22.28 kB / 1.176 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.05161/4.442, allocations: 15.43 MB / 1.191 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/4.442, allocations: 36 kB / 1.191 GB, free: 1.504 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/4.442, allocations: 79.94 kB / 1.191 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01583/4.458, allocations: 4.114 MB / 1.195 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0142/4.473, allocations: 1.673 MB / 1.197 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02616/4.499, allocations: 12.19 MB / 1.209 GB, free: 1.238 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/4.511, allocations: 455.9 kB / 1.209 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002987/4.514, allocations: 405.1 kB / 1.21 GB, free: 0.5117 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (871): * Single equations (assignments): 815 * 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.005929/4.52, allocations: 0.5846 MB / 1.21 GB, free: 36 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.424/4.944, allocations: 0.606 MB / 1.211 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05114/4.995, allocations: 14.43 MB / 1.225 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003683/4.996, allocations: 191.7 kB / 1.225 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.951e-05/4.996, allocations: 4.906 kB / 1.225 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002178/4.996, allocations: 34.55 kB / 1.225 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08848/5.084, allocations: 28.92 MB / 1.254 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.176e-05/5.084, allocations: 4.969 kB / 1.254 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009965/5.094, allocations: 1.059 MB / 1.255 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0129/5.107, allocations: 3.976 MB / 1.258 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002078/5.109, allocations: 178.7 kB / 1.259 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01882/5.128, allocations: 12 MB / 1.27 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/5.128, allocations: 6.875 kB / 1.27 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05783/5.186, allocations: 21.86 MB / 1.292 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0072/5.193, allocations: 1.777 MB / 1.293 GB, free: 92.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003265/5.197, allocations: 127.4 kB / 1.294 GB, free: 91.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008921/5.206, allocations: 332.1 kB / 1.294 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003274/5.209, allocations: 0.5827 MB / 1.294 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001785/5.211, allocations: 215.1 kB / 1.295 GB, free: 91.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007855/5.219, allocations: 2.811 MB / 1.297 GB, free: 90.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.183e-06/5.219, allocations: 0 / 1.297 GB, free: 90.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01424/5.233, allocations: 2.211 MB / 1.3 GB, free: 90.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 496 * 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.06217/5.295, allocations: 23.96 MB / 1.323 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03611/5.331, allocations: 13.01 MB / 1.336 GB, free: 67.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/5.332, allocations: 4.844 kB / 1.336 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01994/5.351, allocations: 6.733 MB / 1.342 GB, free: 61.17 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01265/5.364, allocations: 1.272 MB / 1.344 GB, free: 60.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08556/5.45, allocations: 25.35 MB / 1.368 GB, free: 38.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01833/5.468, allocations: 7.846 MB / 1.376 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01312/5.481, allocations: 4.798 MB / 1.381 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of SimCode: time 2.214e-06/5.481, allocations: 0 / 1.381 GB, free: 27.8 MB / 0.5105 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_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp311 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp311 = 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_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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_SMPM_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o] Error 1