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.IMC_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.IMC_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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.001512/0.001517, allocations: 182.6 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 2.071/2.071, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001172/0.001172, allocations: 99.27 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003802, allocations: 12 kB / 327.1 MB, free: 76 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3277, allocations: 47.56 MB / 374.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics): time 0.02854/0.3563, allocations: 19.93 MB / 394.6 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.3736, allocations: 6.95 MB / 401.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004928/0.3786, allocations: 147.5 kB / 401.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006529/0.3852, allocations: 1.497 MB / 403.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01087/0.3961, allocations: 2.521 MB / 405.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005787/0.4019, allocations: 1.174 MB / 406.9 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0207/0.4227, allocations: 9.971 MB / 416.8 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04688/0.4696, allocations: 17.81 MB / 434.7 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008807/0.4784, allocations: 3.902 MB / 438.6 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009678/0.4882, allocations: 4.234 MB / 442.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003079/0.4913, allocations: 0.6445 MB / 443.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005491/0.4968, allocations: 0.9331 MB / 444.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004041/0.5009, allocations: 1.889 MB / 446.3 MB, free: 9.012 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004352/0.5053, allocations: 2.071 MB / 448.3 MB, free: 6.93 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02871/0.5341, allocations: 18.95 MB / 467.3 MB, free: 3.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.5341, allocations: 0 / 467.3 MB, free: 3.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.5342, allocations: 4 kB / 467.3 MB, free: 3.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004994/0.5347, allocations: 0 / 467.3 MB, free: 3.926 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04706/0.5817, allocations: 10.85 MB / 478.1 MB, free: 8.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.5818, allocations: 12.03 kB / 478.1 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0072/0.589, allocations: 1.577 MB / 479.7 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06245/0.6515, allocations: 7.089 MB / 486.8 MB, free: 280 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01965/0.6712, allocations: 6.1 MB / 492.9 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001267/0.6725, allocations: 0.7183 MB / 493.6 MB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005132/0.6777, allocations: 0.9334 MB / 494.6 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5918/1.27, allocations: 16.07 MB / 0.4987 GB, free: 84.43 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005513/1.27, allocations: 15.94 kB / 0.4987 GB, free: 84.43 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004273/1.274, allocations: 396.1 kB / 0.499 GB, free: 84.14 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001548/1.276, allocations: 0.5827 MB / 0.4996 GB, free: 84.07 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07147/1.348, allocations: 15.41 MB / 0.5147 GB, free: 76.95 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1395/1.487, allocations: 52.95 MB / 0.5664 GB, free: 26.46 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04304/1.53, allocations: 35.47 MB / 0.601 GB, free: 2.707 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03135/1.562, allocations: 10.26 MB / 0.611 GB, free: 8.469 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.27e-05/1.562, allocations: 72.83 kB / 0.6111 GB, free: 8.387 MB / 410.8 MB Notification: Performance of pre-optimization done (n=307): time 6.031e-06/1.562, allocations: 4 kB / 0.6111 GB, free: 8.383 MB / 410.8 MB Notification: Performance of matching and sorting (n=313): time 0.06175/1.624, allocations: 15.58 MB / 0.6263 GB, free: 8.594 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/1.624, allocations: 85.78 kB / 0.6264 GB, free: 8.496 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009755/1.633, allocations: 3.817 MB / 0.6301 GB, free: 4.688 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006948/1.634, allocations: 73.7 kB / 0.6302 GB, free: 4.609 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004421/1.639, allocations: 4.138 MB / 0.6342 GB, free: 460 kB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001914/1.641, allocations: 1.085 MB / 0.6353 GB, free: 15.37 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006435/1.641, allocations: 112 kB / 0.6354 GB, free: 15.26 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0005763/1.642, allocations: 0.5303 MB / 0.6359 GB, free: 14.72 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008106/1.65, allocations: 2.595 MB / 0.6384 GB, free: 12.12 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/1.661, allocations: 4.938 MB / 0.6433 GB, free: 6.059 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/1.672, allocations: 3.737 MB / 0.6469 GB, free: 2.305 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.939e-05/1.673, allocations: 20 kB / 0.6469 GB, free: 2.285 MB / 442.8 MB Notification: Performance of matching and sorting (n=706) (initialization): time 0.02836/1.701, allocations: 8.567 MB / 0.6553 GB, free: 9.684 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.676e-05/1.701, allocations: 40.94 kB / 0.6553 GB, free: 9.645 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/1.701, allocations: 76 kB / 0.6554 GB, free: 9.57 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006231/1.708, allocations: 1.215 MB / 0.6566 GB, free: 8.352 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008997/1.717, allocations: 1.236 MB / 0.6578 GB, free: 7.113 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3254/2.042, allocations: 9.39 MB / 0.667 GB, free: 149.2 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006493/2.049, allocations: 331.3 kB / 0.6673 GB, free: 149.2 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/2.05, allocations: 288.9 kB / 0.6676 GB, free: 149.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 361 * 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 (645): * Single equations (assignments): 640 * 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%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009175/2.059, allocations: 3.735 MB / 0.6712 GB, free: 148.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/2.06, allocations: 385.6 kB / 0.6716 GB, free: 148.5 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02039/2.081, allocations: 5.936 MB / 0.6774 GB, free: 146.2 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01541/2.096, allocations: 4.87 MB / 0.6821 GB, free: 144.3 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.481e-05/2.096, allocations: 9.875 kB / 0.6821 GB, free: 144.3 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.51e-05/2.096, allocations: 15.23 kB / 0.6822 GB, free: 144.3 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03891/2.135, allocations: 13.89 MB / 0.6957 GB, free: 138.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/2.135, allocations: 5.875 kB / 0.6957 GB, free: 138.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004974/2.14, allocations: 0.569 MB / 0.6963 GB, free: 138.6 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00513/2.146, allocations: 1.076 MB / 0.6973 GB, free: 138.4 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007041/2.146, allocations: 73.45 kB / 0.6974 GB, free: 138.3 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/2.166, allocations: 8.305 MB / 0.7055 GB, free: 133.9 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/2.166, allocations: 7.75 kB / 0.7055 GB, free: 133.9 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02251/2.189, allocations: 9.02 MB / 0.7143 GB, free: 126.4 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003016/2.192, allocations: 0.8931 MB / 0.7152 GB, free: 125.6 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/2.193, allocations: 66.92 kB / 0.7153 GB, free: 125.5 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004128/2.197, allocations: 193.8 kB / 0.7155 GB, free: 125.4 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/2.198, allocations: 229.2 kB / 0.7157 GB, free: 125.1 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003729/2.199, allocations: 99.98 kB / 0.7158 GB, free: 125 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006206/2.205, allocations: 2.544 MB / 0.7183 GB, free: 122.5 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.12e-07/2.205, allocations: 0 / 0.7183 GB, free: 122.5 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.008778/2.214, allocations: 1.553 MB / 0.7198 GB, free: 121 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 2 (imcQS.rotorCage.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 (289): * Single equations (assignments): 284 * 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.8%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02366/2.238, allocations: 10.45 MB / 0.73 GB, free: 110.4 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01821/2.256, allocations: 6.632 MB / 0.7365 GB, free: 103.7 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.068e-06/2.256, allocations: 0 / 0.7365 GB, free: 103.7 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009301/2.265, allocations: 3.048 MB / 0.7394 GB, free: 100.7 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006635/2.272, allocations: 0.8518 MB / 0.7403 GB, free: 99.84 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4379/2.71, allocations: 99.01 MB / 0.8369 GB, free: 158 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01194/2.722, allocations: 6.19 MB / 0.843 GB, free: 157.1 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00798/2.73, allocations: 3.353 MB / 0.8463 GB, free: 154.6 MB / 458.8 MB Notification: Performance of SimCode: time 1.994e-06/2.73, allocations: 0 / 0.8463 GB, free: 154.6 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_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:220:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp114 = 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_IMC_CharacteristicsFunctions.cpp:220:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp114 = 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_IMC_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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_IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1