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.InductionMachines.IMS_Characteristics.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.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",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.00152/0.001525, allocations: 183.3 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001117/0.001116, allocations: 88.42 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.0003841, allocations: 8 kB / 327.1 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3247, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.03093/0.3557, allocations: 21.67 MB / 396.3 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.3746, allocations: 7.606 MB / 403.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005985/0.3807, allocations: 155.5 kB / 404.1 MB, free: 19.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007317/0.388, allocations: 1.64 MB / 405.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01223/0.4003, allocations: 2.838 MB / 408.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006468/0.4068, allocations: 1.282 MB / 409.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02208/0.4289, allocations: 10.94 MB / 420.8 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05414/0.4831, allocations: 19.64 MB / 440.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009962/0.4931, allocations: 4.408 MB / 444.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.5045, allocations: 4.841 MB / 449.7 MB, free: 5.605 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003515/0.508, allocations: 0.7188 MB / 450.4 MB, free: 4.887 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006101/0.5142, allocations: 1.011 MB / 451.4 MB, free: 3.875 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004736/0.519, allocations: 2.196 MB / 453.6 MB, free: 1.672 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005168/0.5242, allocations: 2.336 MB / 455.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03211/0.5563, allocations: 20.86 MB / 476.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.5564, allocations: 4 kB / 476.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.132e-05/0.5564, allocations: 0 / 476.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006492/0.5571, allocations: 3.938 kB / 476.8 MB, free: 10.4 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.05369/0.6108, allocations: 12.32 MB / 489.1 MB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.6109, allocations: 8.031 kB / 489.1 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008366/0.6193, allocations: 1.817 MB / 490.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08254/0.7019, allocations: 9.264 MB / 0.4885 GB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5634/1.265, allocations: 6.818 MB / 0.4951 GB, free: 85.04 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/1.266, allocations: 0.8124 MB / 0.4959 GB, free: 84.67 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005464/1.272, allocations: 1.074 MB / 0.497 GB, free: 84.33 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05887/1.331, allocations: 18.6 MB / 0.5151 GB, free: 76.48 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006136/1.331, allocations: 15.44 kB / 0.5152 GB, free: 76.48 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004084/1.336, allocations: 453.9 kB / 0.5156 GB, free: 76.14 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00106/1.337, allocations: 0.707 MB / 0.5163 GB, free: 75.99 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05195/1.389, allocations: 18.14 MB / 0.534 GB, free: 58.07 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1374/1.526, allocations: 60.12 MB / 0.5927 GB, free: 13.08 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0649/1.591, allocations: 46.66 MB / 0.6383 GB, free: 9.449 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04193/1.633, allocations: 12.56 MB / 0.6505 GB, free: 12.93 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.972e-05/1.633, allocations: 73.64 kB / 0.6506 GB, free: 12.84 MB / 458.8 MB Notification: Performance of pre-optimization done (n=395): time 8.295e-06/1.633, allocations: 0 / 0.6506 GB, free: 12.84 MB / 458.8 MB Notification: Performance of matching and sorting (n=401): time 0.3804/2.014, allocations: 19.75 MB / 0.6699 GB, free: 152.1 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.714e-05/2.014, allocations: 90.09 kB / 0.67 GB, free: 152.1 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01108/2.025, allocations: 4.27 MB / 0.6742 GB, free: 150.5 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008526/2.026, allocations: 95.64 kB / 0.6742 GB, free: 150.4 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003677/2.029, allocations: 4.665 MB / 0.6788 GB, free: 146.8 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002101/2.032, allocations: 1.382 MB / 0.6802 GB, free: 145.7 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007589/2.032, allocations: 128.8 kB / 0.6803 GB, free: 145.6 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005298/2.033, allocations: 0.5758 MB / 0.6808 GB, free: 145.2 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009063/2.042, allocations: 3.165 MB / 0.6839 GB, free: 144 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01125/2.053, allocations: 5.762 MB / 0.6896 GB, free: 139.4 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/2.064, allocations: 4.446 MB / 0.6939 GB, free: 137.5 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/2.064, allocations: 25.25 kB / 0.6939 GB, free: 137.5 MB / 458.8 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.03115/2.096, allocations: 10.15 MB / 0.7038 GB, free: 133.5 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/2.096, allocations: 42.59 kB / 0.7039 GB, free: 133.5 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003063/2.096, allocations: 85.75 kB / 0.704 GB, free: 133.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/2.106, allocations: 1.411 MB / 0.7053 GB, free: 133.2 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01702/2.123, allocations: 1.476 MB / 0.7068 GB, free: 133 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03993/2.163, allocations: 10.86 MB / 0.7174 GB, free: 124 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/2.175, allocations: 399.3 kB / 0.7178 GB, free: 123.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002005/2.177, allocations: 332 kB / 0.7181 GB, free: 123.3 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * 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 (759): * Single equations (assignments): 754 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01501/2.193, allocations: 4.18 MB / 0.7222 GB, free: 119.1 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002059/2.195, allocations: 454 kB / 0.7226 GB, free: 118.6 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03483/2.23, allocations: 7.472 MB / 0.7299 GB, free: 111.1 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02691/2.256, allocations: 6.13 MB / 0.7359 GB, free: 105 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.593e-05/2.257, allocations: 15.95 kB / 0.7359 GB, free: 104.9 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001284/2.257, allocations: 19.92 kB / 0.7359 GB, free: 104.9 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0688/2.326, allocations: 16.52 MB / 0.752 GB, free: 88.4 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-05/2.326, allocations: 7.719 kB / 0.7521 GB, free: 88.39 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01084/2.337, allocations: 0.7373 MB / 0.7528 GB, free: 87.66 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009572/2.346, allocations: 1.242 MB / 0.754 GB, free: 86.41 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001128/2.347, allocations: 87.98 kB / 0.7541 GB, free: 86.33 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03617/2.384, allocations: 9.63 MB / 0.7635 GB, free: 76.57 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/2.384, allocations: 4 kB / 0.7635 GB, free: 76.57 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/2.427, allocations: 10.8 MB / 0.774 GB, free: 65.69 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005498/2.433, allocations: 1.061 MB / 0.7751 GB, free: 64.61 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002455/2.435, allocations: 68 kB / 0.7751 GB, free: 64.54 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008028/2.443, allocations: 259.8 kB / 0.7754 GB, free: 64.29 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002073/2.446, allocations: 271.5 kB / 0.7756 GB, free: 64.02 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001098/2.447, allocations: 120 kB / 0.7757 GB, free: 63.9 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01042/2.457, allocations: 2.842 MB / 0.7785 GB, free: 61.05 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.263e-06/2.457, allocations: 0 / 0.7785 GB, free: 61.05 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01466/2.472, allocations: 1.845 MB / 0.7803 GB, free: 59.21 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.port_p.reference.gamma,speed.phi) * 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 (367): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04368/2.516, allocations: 11.7 MB / 0.7917 GB, free: 47.45 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0217/2.537, allocations: 8.023 MB / 0.7996 GB, free: 39.41 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/2.538, allocations: 3.938 kB / 0.7996 GB, free: 39.41 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01087/2.548, allocations: 3.716 MB / 0.8032 GB, free: 35.68 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007726/2.556, allocations: 0.9759 MB / 0.8042 GB, free: 34.73 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4729/3.029, allocations: 112.7 MB / 0.9142 GB, free: 76.85 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01365/3.043, allocations: 6.999 MB / 0.921 GB, free: 72.96 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009286/3.052, allocations: 3.918 MB / 0.9249 GB, free: 69.39 MB / 458.8 MB Notification: Performance of SimCode: time 1.433e-06/3.052, allocations: 1.422 kB / 0.9249 GB, free: 69.39 MB / 458.8 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_InductionMachines_IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFunctions.cpp:220:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp135 = 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_InductionMachines_IMS_CharacteristicsFunctions.cpp:220:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp135 = 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_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFMU.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_InductionMachines_IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o] Error 1