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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",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.001534/0.001534, allocations: 181.6 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.238/2.238, 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.001139/0.001138, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.507e-05/3.527e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 47.57 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.6119, allocations: 132 MB / 0.4895 GB, free: 9.824 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000404/0.6124, allocations: 103.4 kB / 0.4896 GB, free: 9.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.685/2.298, allocations: 351.9 MB / 0.8332 GB, free: 8.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.354e-06/2.298, allocations: 0 / 0.8332 GB, free: 8.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008563/2.299, allocations: 219.8 kB / 0.8334 GB, free: 8.133 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.7187/3.017, allocations: 9.539 MB / 0.8427 GB, free: 26.47 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.442e-05/3.017, allocations: 9.938 kB / 0.8427 GB, free: 26.47 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009839/3.027, allocations: 1.622 MB / 0.8443 GB, free: 26.34 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04426/3.072, allocations: 4.927 MB / 0.8491 GB, free: 25.85 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03114/3.103, allocations: 8.182 MB / 0.8571 GB, free: 25.39 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001581/3.104, allocations: 0.7148 MB / 0.8578 GB, free: 25.38 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005731/3.11, allocations: 0.9287 MB / 0.8587 GB, free: 25.37 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05898/3.169, allocations: 16.96 MB / 0.8753 GB, free: 24.28 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000569/3.17, allocations: 12.61 kB / 0.8753 GB, free: 24.27 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0045/3.174, allocations: 407.5 kB / 0.8757 GB, free: 24.27 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001265/3.176, allocations: 0.705 MB / 0.8764 GB, free: 24.25 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04676/3.222, allocations: 15.56 MB / 0.8916 GB, free: 24.16 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1503/3.373, allocations: 55.37 MB / 0.9457 GB, free: 2.078 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0382/3.411, allocations: 19.27 MB / 0.9645 GB, free: 5.867 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02098/3.432, allocations: 7.533 MB / 0.9718 GB, free: 0.5977 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09349/3.526, allocations: 25.79 MB / 0.997 GB, free: 13.96 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000124/3.526, allocations: 106.8 kB / 0.9971 GB, free: 13.85 MB / 474.8 MB Notification: Performance of pre-optimization done (n=749): time 1.213e-05/3.526, allocations: 0 / 0.9971 GB, free: 13.85 MB / 474.8 MB Notification: Performance of matching and sorting (n=754): time 0.4469/3.973, allocations: 25.4 MB / 1.022 GB, free: 70.5 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/3.973, allocations: 125.3 kB / 1.022 GB, free: 70.43 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009512/3.982, allocations: 3.175 MB / 1.025 GB, free: 70.16 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001926/3.984, allocations: 126.1 kB / 1.025 GB, free: 70.13 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003477/3.988, allocations: 3.441 MB / 1.029 GB, free: 68.45 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004626/3.993, allocations: 2.478 MB / 1.031 GB, free: 66.84 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00207/3.995, allocations: 127.5 kB / 1.031 GB, free: 66.84 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001036/3.996, allocations: 0.6137 MB / 1.032 GB, free: 66.52 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01474/4.011, allocations: 5.009 MB / 1.037 GB, free: 66.5 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01635/4.027, allocations: 6.258 MB / 1.043 GB, free: 65.3 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01658/4.044, allocations: 6.058 MB / 1.049 GB, free: 65.2 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.936e-05/4.044, allocations: 11.09 kB / 1.049 GB, free: 65.2 MB / 474.8 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04268/4.086, allocations: 14.24 MB / 1.063 GB, free: 64.78 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/4.087, allocations: 20.44 kB / 1.063 GB, free: 64.78 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-05/4.087, allocations: 36 kB / 1.063 GB, free: 64.78 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01393/4.101, allocations: 4.005 MB / 1.067 GB, free: 64.69 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/4.111, allocations: 1.187 MB / 1.068 GB, free: 64.69 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/4.132, allocations: 12.54 MB / 1.08 GB, free: 60.14 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008743/4.141, allocations: 361.7 kB / 1.08 GB, free: 60.14 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002501/4.144, allocations: 284.2 kB / 1.081 GB, free: 60.14 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.004324/4.148, allocations: 440.5 kB / 1.081 GB, free: 60.01 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003363/4.152, allocations: 0.4885 MB / 1.081 GB, free: 59.75 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04739/4.199, allocations: 14.18 MB / 1.095 GB, free: 56.16 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03686/4.236, allocations: 12.67 MB / 1.108 GB, free: 50.79 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/4.236, allocations: 0 / 1.108 GB, free: 50.79 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001783/4.236, allocations: 35.41 kB / 1.108 GB, free: 50.79 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08269/4.319, allocations: 28.04 MB / 1.135 GB, free: 38.47 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001453/4.319, allocations: 0 / 1.135 GB, free: 38.47 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008494/4.328, allocations: 0.8853 MB / 1.136 GB, free: 38.32 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01348/4.341, allocations: 3.928 MB / 1.14 GB, free: 35.12 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002205/4.343, allocations: 158.9 kB / 1.14 GB, free: 34.99 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02062/4.364, allocations: 12.43 MB / 1.152 GB, free: 23.36 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/4.364, allocations: 5.344 kB / 1.152 GB, free: 23.36 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0573/4.421, allocations: 21.43 MB / 1.173 GB, free: 4.195 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006786/4.428, allocations: 1.727 MB / 1.175 GB, free: 2.629 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003298/4.432, allocations: 111.8 kB / 1.175 GB, free: 2.523 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007199/4.439, allocations: 297.4 kB / 1.175 GB, free: 2.316 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003003/4.442, allocations: 0.5564 MB / 1.176 GB, free: 1.957 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00204/4.444, allocations: 205.5 kB / 1.176 GB, free: 1.777 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.0075/4.452, allocations: 2.468 MB / 1.178 GB, free: 15.73 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.573e-06/4.452, allocations: 0 / 1.178 GB, free: 15.73 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01335/4.465, allocations: 1.823 MB / 1.18 GB, free: 13.93 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.4413/4.906, allocations: 23.09 MB / 1.203 GB, free: 83.66 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03567/4.942, allocations: 12.28 MB / 1.215 GB, free: 83.25 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/4.942, allocations: 6.312 kB / 1.215 GB, free: 83.25 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01939/4.962, allocations: 6.41 MB / 1.221 GB, free: 82.98 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008906/4.97, allocations: 0.896 MB / 1.222 GB, free: 82.95 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07132/5.042, allocations: 22.27 MB / 1.243 GB, free: 80.06 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/5.056, allocations: 6.663 MB / 1.25 GB, free: 79.17 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01022/5.066, allocations: 3.611 MB / 1.254 GB, free: 79.16 MB / 490.8 MB Notification: Performance of SimCode: time 1.894e-06/5.066, allocations: 0 / 1.254 GB, free: 79.16 MB / 490.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=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_InductionMachines_IMC_withLossesCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:611:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesFunctions.cpp:611:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFMU.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_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1