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_Start.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_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",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.002261/0.00226, allocations: 181.4 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.158/2.158, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001122/0.001122, allocations: 78.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.461e-05, allocations: 4 kB / 321.6 MB, free: 17.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 47.57 MB / 369.2 MB, free: 2.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5473/0.6511, allocations: 162 MB / 0.5188 GB, free: 12.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/0.6515, allocations: 107.8 kB / 0.5189 GB, free: 12.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.08/3.732, allocations: 0.5707 GB / 1.09 GB, free: 40.26 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.796e-06/3.732, allocations: 0 / 1.09 GB, free: 40.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001704/3.733, allocations: 422.5 kB / 1.09 GB, free: 40.2 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.08694/3.82, allocations: 17 MB / 1.107 GB, free: 35.1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/3.821, allocations: 9.219 kB / 1.107 GB, free: 35.1 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01597/3.837, allocations: 2.96 MB / 1.11 GB, free: 34.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07238/3.909, allocations: 8.479 MB / 1.118 GB, free: 33.86 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05451/3.964, allocations: 14.55 MB / 1.132 GB, free: 32.11 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002381/3.966, allocations: 1.342 MB / 1.133 GB, free: 32.07 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009939/3.976, allocations: 1.738 MB / 1.135 GB, free: 32.07 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1048/4.081, allocations: 30.36 MB / 1.165 GB, free: 15.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001072/4.082, allocations: 29.3 kB / 1.165 GB, free: 15.38 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009918/4.092, allocations: 0.7502 MB / 1.165 GB, free: 14.65 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/4.094, allocations: 1.197 MB / 1.167 GB, free: 13.56 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.107/4.201, allocations: 27.86 MB / 1.194 GB, free: 6.766 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7262/4.927, allocations: 98.16 MB / 1.29 GB, free: 30.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05582/4.983, allocations: 35.32 MB / 1.324 GB, free: 6.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03142/5.015, allocations: 12.78 MB / 1.337 GB, free: 1.227 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1306/5.145, allocations: 39.69 MB / 1.375 GB, free: 0 / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/5.146, allocations: 148.8 kB / 1.376 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1269): time 1.859e-05/5.146, allocations: 0 / 1.376 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1277): time 0.6008/5.747, allocations: 45.79 MB / 1.42 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/5.747, allocations: 191.5 kB / 1.42 GB, free: 81.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01522/5.762, allocations: 4.978 MB / 1.425 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003236/5.765, allocations: 199.9 kB / 1.425 GB, free: 80.82 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005942/5.771, allocations: 6.286 MB / 1.432 GB, free: 77.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007876/5.779, allocations: 4.191 MB / 1.436 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003632/5.783, allocations: 214.6 kB / 1.436 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00173/5.785, allocations: 0.8082 MB / 1.437 GB, free: 74.42 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02287/5.808, allocations: 8.149 MB / 1.445 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02533/5.833, allocations: 10.3 MB / 1.455 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02682/5.86, allocations: 9.777 MB / 1.464 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001897/5.86, allocations: 18.09 kB / 1.464 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.0759/5.936, allocations: 24.53 MB / 1.488 GB, free: 62.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/5.936, allocations: 29.81 kB / 1.488 GB, free: 62.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/5.936, allocations: 54.12 kB / 1.488 GB, free: 62.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03205/5.968, allocations: 8.951 MB / 1.497 GB, free: 60.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01618/5.985, allocations: 1.872 MB / 1.499 GB, free: 60.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05383/6.039, allocations: 30.39 MB / 1.529 GB, free: 40.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/6.053, allocations: 0.5519 MB / 1.529 GB, free: 39.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003854/6.057, allocations: 466.3 kB / 1.53 GB, free: 39.81 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 918 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.006781/6.064, allocations: 0.6806 MB / 1.53 GB, free: 39.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005069/6.069, allocations: 0.8426 MB / 1.531 GB, free: 38.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07561/6.145, allocations: 25.36 MB / 1.556 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05959/6.204, allocations: 20.12 MB / 1.575 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.625e-05/6.204, allocations: 12 kB / 1.575 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002974/6.205, allocations: 54.09 kB / 1.576 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6321/6.837, allocations: 49.32 MB / 1.624 GB, free: 96.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002091/6.837, allocations: 6.312 kB / 1.624 GB, free: 96.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01313/6.85, allocations: 1.349 MB / 1.625 GB, free: 96.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03213/6.882, allocations: 9.054 MB / 1.634 GB, free: 96.16 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003849/6.886, allocations: 274.6 kB / 1.634 GB, free: 96.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06143/6.948, allocations: 36.51 MB / 1.67 GB, free: 79.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/6.948, allocations: 5.562 kB / 1.67 GB, free: 79.61 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1104/7.058, allocations: 37.71 MB / 1.707 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01224/7.071, allocations: 2.806 MB / 1.709 GB, free: 61.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006405/7.077, allocations: 188.4 kB / 1.71 GB, free: 61.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01291/7.09, allocations: 0.5127 MB / 1.71 GB, free: 61.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005162/7.095, allocations: 0.9667 MB / 1.711 GB, free: 60.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003431/7.099, allocations: 341 kB / 1.711 GB, free: 60.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01079/7.11, allocations: 3.787 MB / 1.715 GB, free: 56.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.062e-06/7.11, allocations: 0 / 1.715 GB, free: 56.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02148/7.131, allocations: 3.246 MB / 1.718 GB, free: 53.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (716): * Single equations (assignments): 650 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.1053/7.236, allocations: 39.7 MB / 1.757 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.5028/7.739, allocations: 21.65 MB / 1.778 GB, free: 94.87 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.716e-05/7.739, allocations: 3.438 kB / 1.778 GB, free: 94.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03951/7.779, allocations: 12.17 MB / 1.79 GB, free: 93.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01935/7.798, allocations: 1.967 MB / 1.792 GB, free: 93.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1344/7.933, allocations: 38.81 MB / 1.83 GB, free: 88.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03012/7.963, allocations: 11.57 MB / 1.841 GB, free: 86.85 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0201/7.983, allocations: 6.838 MB / 1.848 GB, free: 86.84 MB / 0.5261 GB Notification: Performance of SimCode: time 2.084e-06/7.983, allocations: 0 / 1.848 GB, free: 86.84 MB / 0.5261 GB 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_IMS_StartCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_StartFunctions.cpp:588:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_StartCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFMU.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_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o] Error 1