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.001441/0.001441, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.07/2.07, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 91.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.137e-05, allocations: 0 / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3481, allocations: 47.56 MB / 362.5 MB, free: 45.77 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2418/0.59, allocations: 148.3 MB / 0.4988 GB, free: 1.781 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/0.5904, allocations: 100.4 kB / 0.4989 GB, free: 1.684 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.309/1.9, allocations: 229.3 MB / 0.7228 GB, free: 52.89 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.974e-06/1.9, allocations: 4 kB / 0.7228 GB, free: 52.88 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0006187/1.9, allocations: 156 kB / 0.7229 GB, free: 52.87 MB / 411.1 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.03202/1.933, allocations: 6.786 MB / 0.7296 GB, free: 50.57 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/1.933, allocations: 7.25 kB / 0.7296 GB, free: 50.57 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0307/1.963, allocations: 3.659 MB / 0.7331 GB, free: 50.16 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02146/1.985, allocations: 5.913 MB / 0.7389 GB, free: 49.14 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006246/1.985, allocations: 233 kB / 0.7391 GB, free: 49.14 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003451/1.989, allocations: 431.2 kB / 0.7396 GB, free: 49.12 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02799/2.017, allocations: 9.154 MB / 0.7485 GB, free: 46 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03664/2.054, allocations: 10.2 MB / 0.7585 GB, free: 40.99 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005412/2.054, allocations: 17.19 kB / 0.7585 GB, free: 40.98 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003099/2.057, allocations: 7.953 kB / 0.7585 GB, free: 40.97 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007956/2.058, allocations: 498.3 kB / 0.759 GB, free: 40.53 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09482/2.153, allocations: 37.69 MB / 0.7958 GB, free: 9.137 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02455/2.178, allocations: 18.17 MB / 0.8135 GB, free: 5.219 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01177/2.19, allocations: 4.21 MB / 0.8176 GB, free: 0.9922 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3794/2.569, allocations: 14 MB / 0.8313 GB, free: 66.67 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/2.569, allocations: 72.62 kB / 0.8314 GB, free: 66.63 MB / 427.1 MB Notification: Performance of pre-optimization done (n=399): time 3.074e-05/2.569, allocations: 0 / 0.8314 GB, free: 66.63 MB / 427.1 MB Notification: Performance of matching and sorting (n=415): time 0.05488/2.624, allocations: 16.2 MB / 0.8472 GB, free: 65.39 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/2.624, allocations: 90.55 kB / 0.8473 GB, free: 65.32 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006869/2.631, allocations: 2.446 MB / 0.8496 GB, free: 65.07 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/2.632, allocations: 28.8 kB / 0.8497 GB, free: 65.04 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002845/2.635, allocations: 3.065 MB / 0.8527 GB, free: 63.52 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00238/2.638, allocations: 1.352 MB / 0.854 GB, free: 62.63 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006227/2.638, allocations: 0 / 0.854 GB, free: 62.63 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0005414/2.639, allocations: 0.5303 MB / 0.8545 GB, free: 62.31 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007875/2.647, allocations: 2.878 MB / 0.8573 GB, free: 62.29 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009926/2.657, allocations: 4.855 MB / 0.8621 GB, free: 59.8 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/2.67, allocations: 4.482 MB / 0.8664 GB, free: 58.16 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/2.67, allocations: 19.66 kB / 0.8665 GB, free: 58.16 MB / 427.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02789/2.698, allocations: 9.494 MB / 0.8757 GB, free: 54.77 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.414e-05/2.698, allocations: 36.5 kB / 0.8758 GB, free: 54.77 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/2.698, allocations: 62.56 kB / 0.8758 GB, free: 54.77 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007636/2.706, allocations: 2.455 MB / 0.8782 GB, free: 54.09 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007786/2.714, allocations: 1.078 MB / 0.8793 GB, free: 54.05 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009549/2.723, allocations: 5.552 MB / 0.8847 GB, free: 51.05 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006685/2.73, allocations: 249.1 kB / 0.8849 GB, free: 51.02 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/2.732, allocations: 267.4 kB / 0.8852 GB, free: 50.98 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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.001696/2.733, allocations: 341.4 kB / 0.8855 GB, free: 50.81 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02077/2.754, allocations: 7.719 MB / 0.893 GB, free: 47.71 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/2.756, allocations: 380.7 kB / 0.8934 GB, free: 47.51 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02365/2.78, allocations: 8.412 MB / 0.9016 GB, free: 44.18 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001168/2.78, allocations: 99.62 kB / 0.9017 GB, free: 44.13 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/2.78, allocations: 3.781 kB / 0.9017 GB, free: 44.13 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.879e-05/2.78, allocations: 18.28 kB / 0.9017 GB, free: 44.13 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05198/2.832, allocations: 19.43 MB / 0.9207 GB, free: 33.33 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.294e-05/2.832, allocations: 8.375 kB / 0.9207 GB, free: 33.32 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004842/2.837, allocations: 0.5625 MB / 0.9213 GB, free: 32.9 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007553/2.844, allocations: 2.415 MB / 0.9236 GB, free: 30.9 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009539/2.845, allocations: 46.92 kB / 0.9237 GB, free: 30.86 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/2.857, allocations: 7.22 MB / 0.9307 GB, free: 24.14 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002048/2.859, allocations: 1.809 MB / 0.9325 GB, free: 22.3 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02977/2.889, allocations: 13.02 MB / 0.9452 GB, free: 10.52 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004275/2.893, allocations: 1.075 MB / 0.9463 GB, free: 9.531 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001502/2.894, allocations: 10.67 kB / 0.9463 GB, free: 9.523 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004678/2.899, allocations: 174 kB / 0.9464 GB, free: 9.422 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/2.9, allocations: 318 kB / 0.9467 GB, free: 9.219 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004623/2.901, allocations: 123.4 kB / 0.9469 GB, free: 9.109 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.004068/2.905, allocations: 1.741 MB / 0.9486 GB, free: 7.555 MB / 427.1 MB Notification: Performance of sort global known variables: time 7.12e-07/2.905, allocations: 0 / 0.9486 GB, free: 7.555 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00892/2.914, allocations: 1.201 MB / 0.9497 GB, free: 6.363 MB / 427.1 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,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.0466/2.961, allocations: 16.18 MB / 0.9655 GB, free: 10.18 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.02144/2.982, allocations: 7.221 MB / 0.9726 GB, free: 3.633 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.982, allocations: 0.5625 kB / 0.9726 GB, free: 3.633 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01183/2.994, allocations: 3.636 MB / 0.9761 GB, free: 364 kB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008583/3.003, allocations: 0.7708 MB / 0.9769 GB, free: 0 / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3907/3.393, allocations: 14.32 MB / 0.9909 GB, free: 93.08 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008661/3.402, allocations: 4.551 MB / 0.9953 GB, free: 92.27 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006717/3.409, allocations: 2.576 MB / 0.9978 GB, free: 92.26 MB / 459.1 MB Notification: Performance of SimCode: time 1.923e-06/3.409, allocations: 0 / 0.9978 GB, free: 92.26 MB / 459.1 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/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/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