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.001576/0.001575, allocations: 181.4 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.04/2.04, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001102/0.001101, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.559e-05/3.572e-05, allocations: 8 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09665/0.09672, allocations: 47.57 MB / 369.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5238/0.6206, allocations: 148.9 MB / 0.506 GB, free: 8.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.621, allocations: 110.2 kB / 0.5061 GB, free: 8.918 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.361/1.982, allocations: 232.1 MB / 0.7328 GB, free: 42.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.982, allocations: 2.188 kB / 0.7328 GB, free: 42.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006029/1.983, allocations: 164.4 kB / 0.733 GB, free: 42.23 MB / 410.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.03219/2.015, allocations: 6.792 MB / 0.7396 GB, free: 39.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/2.015, allocations: 7.781 kB / 0.7396 GB, free: 39.94 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006081/2.021, allocations: 1.142 MB / 0.7407 GB, free: 39.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0315/2.053, allocations: 3.668 MB / 0.7443 GB, free: 39.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02199/2.075, allocations: 5.917 MB / 0.7501 GB, free: 38.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008417/2.076, allocations: 0.5231 MB / 0.7506 GB, free: 38.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003715/2.079, allocations: 0.7015 MB / 0.7513 GB, free: 38.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03921/2.119, allocations: 11.32 MB / 0.7623 GB, free: 37.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000514/2.119, allocations: 19.11 kB / 0.7623 GB, free: 37.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003255/2.123, allocations: 296.7 kB / 0.7626 GB, free: 37.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007951/2.123, allocations: 490.9 kB / 0.7631 GB, free: 37.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03263/2.156, allocations: 10.5 MB / 0.7733 GB, free: 33.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09368/2.25, allocations: 38.32 MB / 0.8108 GB, free: 6.266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02554/2.275, allocations: 18.42 MB / 0.8288 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01593/2.291, allocations: 4.466 MB / 0.8331 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04419/2.336, allocations: 13.66 MB / 0.8465 GB, free: 4.281 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.84e-05/2.336, allocations: 69.28 kB / 0.8465 GB, free: 4.203 MB / 442.7 MB Notification: Performance of pre-optimization done (n=399): time 8.376e-06/2.336, allocations: 4 kB / 0.8465 GB, free: 4.199 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.3974/2.733, allocations: 14.64 MB / 0.8608 GB, free: 71.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004704/2.738, allocations: 1.938 MB / 0.8627 GB, free: 70.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01228/2.75, allocations: 2.933 MB / 0.8656 GB, free: 69.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/2.751, allocations: 84.14 kB / 0.8657 GB, free: 69.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003433/2.755, allocations: 3.016 MB / 0.8686 GB, free: 68.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003084/2.758, allocations: 1.405 MB / 0.87 GB, free: 67.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/2.76, allocations: 100.8 kB / 0.8701 GB, free: 67.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009151/2.761, allocations: 0.5294 MB / 0.8706 GB, free: 67.38 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008682/2.769, allocations: 2.846 MB / 0.8734 GB, free: 67.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/2.78, allocations: 4.842 MB / 0.8781 GB, free: 64.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/2.79, allocations: 3.759 MB / 0.8818 GB, free: 64.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/2.79, allocations: 20.31 kB / 0.8818 GB, free: 64.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.0255/2.816, allocations: 9.12 MB / 0.8907 GB, free: 64.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.039e-05/2.816, allocations: 34.44 kB / 0.8907 GB, free: 64.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/2.816, allocations: 66.25 kB / 0.8908 GB, free: 64.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007898/2.824, allocations: 2.461 MB / 0.8932 GB, free: 64.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007639/2.832, allocations: 1.05 MB / 0.8942 GB, free: 64.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009685/2.841, allocations: 5.402 MB / 0.8995 GB, free: 63.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007454/2.849, allocations: 318.5 kB / 0.8998 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/2.851, allocations: 268 kB / 0.9 GB, free: 63.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * 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.003253/2.854, allocations: 436 kB / 0.9005 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001782/2.856, allocations: 418.3 kB / 0.9009 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0222/2.878, allocations: 7.803 MB / 0.9085 GB, free: 61.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001484/2.878, allocations: 104.3 kB / 0.9086 GB, free: 60.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/2.878, allocations: 5.875 kB / 0.9086 GB, free: 60.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.11e-05/2.878, allocations: 16.36 kB / 0.9086 GB, free: 60.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05277/2.931, allocations: 19.41 MB / 0.9276 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.308e-05/2.931, allocations: 6.156 kB / 0.9276 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004706/2.936, allocations: 0.5265 MB / 0.9281 GB, free: 52.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008401/2.945, allocations: 2.431 MB / 0.9305 GB, free: 51.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001073/2.946, allocations: 95.36 kB / 0.9305 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/2.958, allocations: 7.167 MB / 0.9375 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002262/2.96, allocations: 1.863 MB / 0.9394 GB, free: 45.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02837/2.989, allocations: 12.23 MB / 0.9513 GB, free: 39.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004281/2.993, allocations: 1.079 MB / 0.9524 GB, free: 38.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00159/2.995, allocations: 69.88 kB / 0.9524 GB, free: 38.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004379/2.999, allocations: 209.8 kB / 0.9526 GB, free: 38.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009853/3, allocations: 317.6 kB / 0.9529 GB, free: 38.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000427/3, allocations: 129.9 kB / 0.9531 GB, free: 38.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005316/3.006, allocations: 2.156 MB / 0.9552 GB, free: 37.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.665e-06/3.006, allocations: 0 / 0.9552 GB, free: 37.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008984/3.015, allocations: 1.38 MB / 0.9565 GB, free: 36.07 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * 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.03047/3.045, allocations: 14.8 MB / 0.971 GB, free: 22.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0198/3.065, allocations: 7.227 MB / 0.978 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/3.065, allocations: 0 / 0.978 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01106/3.076, allocations: 3.591 MB / 0.9815 GB, free: 12.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008205/3.085, allocations: 0.8978 MB / 0.9824 GB, free: 11.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0484/3.133, allocations: 14.13 MB / 0.9962 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01108/3.144, allocations: 4.551 MB / 1.001 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008366/3.153, allocations: 2.577 MB / 1.003 GB, free: 10.11 MB / 458.7 MB Notification: Performance of SimCode: time 2.013e-06/3.153, allocations: 4 kB / 1.003 GB, free: 10.11 MB / 458.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