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.001547/0.001547, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.158/2.158, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001124/0.001124, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003828, allocations: 8 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1149, allocations: 47.58 MB / 374.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.3126/0.4276, allocations: 24.12 MB / 398.8 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02185/0.4495, allocations: 8.303 MB / 407.1 MB, free: 4.969 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007048/0.4566, allocations: 153.4 kB / 407.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007847/0.4645, allocations: 1.574 MB / 408.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.4791, allocations: 3.065 MB / 411.9 MB, free: 2.094 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006904/0.486, allocations: 1.301 MB / 413.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01935/0.5054, allocations: 7.277 MB / 420.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02749/0.5329, allocations: 9.883 MB / 430.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007984/0.541, allocations: 2.904 MB / 433.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008414/0.5494, allocations: 3.245 MB / 436.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002525/0.552, allocations: 472 kB / 436.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005517/0.5575, allocations: 0.7457 MB / 437.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00336/0.561, allocations: 1.495 MB / 439.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004084/0.5651, allocations: 1.584 MB / 440.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02309/0.5882, allocations: 13.02 MB / 453.8 MB, free: 14.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.5883, allocations: 0 / 453.8 MB, free: 14.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.5883, allocations: 3.938 kB / 453.8 MB, free: 14.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004545/0.5888, allocations: 0 / 453.8 MB, free: 14.18 MB / 330.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.03589/0.6247, allocations: 8.203 MB / 462 MB, free: 5.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.6247, allocations: 8.031 kB / 462 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005124/0.6299, allocations: 1.148 MB / 463.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04536/0.6753, allocations: 5.168 MB / 468.3 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/0.6907, allocations: 4.627 MB / 472.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000869/0.6916, allocations: 0.5299 MB / 473.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003486/0.6951, allocations: 0.7146 MB / 474.2 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03962/0.7347, allocations: 11.19 MB / 485.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004262/0.7352, allocations: 23.8 kB / 485.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002598/0.7378, allocations: 296 kB / 485.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007789/0.7386, allocations: 447 kB / 486.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03623/0.7749, allocations: 10.76 MB / 496.9 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09884/0.8738, allocations: 38.04 MB / 0.5224 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3226/1.196, allocations: 28.05 MB / 0.5498 GB, free: 91.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02445/1.221, allocations: 7.905 MB / 0.5575 GB, free: 88.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/1.221, allocations: 62.25 kB / 0.5576 GB, free: 88.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 5.11e-06/1.221, allocations: 4.438 kB / 0.5576 GB, free: 88.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=238): time 0.03546/1.257, allocations: 10.4 MB / 0.5677 GB, free: 84.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002655/1.259, allocations: 1.923 MB / 0.5696 GB, free: 82.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008489/1.268, allocations: 3.693 MB / 0.5732 GB, free: 81.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004787/1.268, allocations: 69.58 kB / 0.5733 GB, free: 81.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002633/1.271, allocations: 3.421 MB / 0.5766 GB, free: 78.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001168/1.272, allocations: 0.8476 MB / 0.5774 GB, free: 77.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00047/1.273, allocations: 99.69 kB / 0.5775 GB, free: 77.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003078/1.273, allocations: 0.5025 MB / 0.578 GB, free: 77.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004943/1.278, allocations: 1.891 MB / 0.5799 GB, free: 76.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006624/1.285, allocations: 4.433 MB / 0.5842 GB, free: 72.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006787/1.291, allocations: 2.854 MB / 0.587 GB, free: 71.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.587e-05/1.292, allocations: 23.62 kB / 0.587 GB, free: 71.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01823/1.31, allocations: 6.856 MB / 0.5937 GB, free: 68.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/1.31, allocations: 43.09 kB / 0.5937 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/1.31, allocations: 90.53 kB / 0.5938 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003185/1.313, allocations: 0.7505 MB / 0.5946 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007245/1.321, allocations: 1.141 MB / 0.5957 GB, free: 68.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.331, allocations: 5.39 MB / 0.6009 GB, free: 63.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006381/1.338, allocations: 315 kB / 0.6012 GB, free: 63.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009929/1.339, allocations: 280 kB / 0.6015 GB, free: 63.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 403 * 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 (603): * Single equations (assignments): 600 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006084/1.345, allocations: 2.529 MB / 0.604 GB, free: 60.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.346, allocations: 379.3 kB / 0.6043 GB, free: 60.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.358, allocations: 4.308 MB / 0.6085 GB, free: 55.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/1.358, allocations: 27.98 kB / 0.6086 GB, free: 55.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/1.358, allocations: 11.94 kB / 0.6086 GB, free: 55.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.368e-05/1.358, allocations: 15.95 kB / 0.6086 GB, free: 55.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03424/1.392, allocations: 14.31 MB / 0.6226 GB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/1.392, allocations: 16.88 kB / 0.6226 GB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004021/1.396, allocations: 499.2 kB / 0.6231 GB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003402/1.4, allocations: 0.6854 MB / 0.6237 GB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004697/1.4, allocations: 75.91 kB / 0.6238 GB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/1.413, allocations: 7.093 MB / 0.6307 GB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002181/1.415, allocations: 1.877 MB / 0.6326 GB, free: 30.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/1.431, allocations: 8.123 MB / 0.6405 GB, free: 22.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002704/1.434, allocations: 0.7812 MB / 0.6413 GB, free: 21.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/1.435, allocations: 63.95 kB / 0.6413 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003563/1.439, allocations: 171.9 kB / 0.6415 GB, free: 21.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007748/1.439, allocations: 229.2 kB / 0.6417 GB, free: 20.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002806/1.44, allocations: 96.47 kB / 0.6418 GB, free: 20.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005344/1.445, allocations: 2.392 MB / 0.6441 GB, free: 18.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.445, allocations: 0 / 0.6441 GB, free: 18.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007502/1.453, allocations: 1.292 MB / 0.6454 GB, free: 17.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 1 ($STATESET1.x) * 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 (249): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01766/1.47, allocations: 11.6 MB / 0.6567 GB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01244/1.483, allocations: 5.176 MB / 0.6618 GB, free: 15.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/1.483, allocations: 4 kB / 0.6618 GB, free: 15.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00713/1.49, allocations: 2.432 MB / 0.6642 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007283/1.497, allocations: 0.9104 MB / 0.6651 GB, free: 12.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4225/1.92, allocations: 98.32 MB / 0.7611 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007731/1.928, allocations: 4.504 MB / 0.7655 GB, free: 113 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005758/1.933, allocations: 2.598 MB / 0.768 GB, free: 110.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/1.934, allocations: 0 / 0.768 GB, free: 110.9 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=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_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:99:42: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp62 = 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:99:85: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp62 = 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