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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001595/0.0016, allocations: 182.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.093/2.093, 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.001191/0.001191, allocations: 90.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.285e-05, allocations: 4 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 47.57 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5431/0.6466, allocations: 146.5 MB / 0.5036 GB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003963/0.6471, allocations: 105.6 kB / 0.5037 GB, free: 11.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.72/2.368, allocations: 350.6 MB / 0.8461 GB, free: 11.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.245e-06/2.368, allocations: 3.938 kB / 0.8461 GB, free: 11.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009929/2.369, allocations: 247.8 kB / 0.8463 GB, free: 11.1 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.05301/2.422, allocations: 10.29 MB / 0.8564 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.32e-05/2.422, allocations: 12.03 kB / 0.8564 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.6913/3.113, allocations: 1.519 MB / 0.8579 GB, free: 28.54 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04772/3.161, allocations: 5.377 MB / 0.8631 GB, free: 28 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03418/3.195, allocations: 9.371 MB / 0.8723 GB, free: 27.49 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001575/3.197, allocations: 0.7913 MB / 0.8731 GB, free: 27.47 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006245/3.203, allocations: 1.034 MB / 0.8741 GB, free: 27.46 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06107/3.264, allocations: 17.72 MB / 0.8914 GB, free: 26.27 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007917/3.265, allocations: 25.08 kB / 0.8914 GB, free: 26.26 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005945/3.271, allocations: 451.2 kB / 0.8918 GB, free: 26.26 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001319/3.272, allocations: 0.7299 MB / 0.8925 GB, free: 26.23 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04923/3.322, allocations: 16.43 MB / 0.9086 GB, free: 26.12 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1474/3.469, allocations: 58.32 MB / 0.9655 GB, free: 2.859 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03942/3.508, allocations: 23.38 MB / 0.9884 GB, free: 1.16 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02091/3.529, allocations: 7.102 MB / 0.9953 GB, free: 14.87 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06788/3.597, allocations: 21.97 MB / 1.017 GB, free: 14.21 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001241/3.598, allocations: 105.4 kB / 1.017 GB, free: 14.11 MB / 490.8 MB Notification: Performance of pre-optimization done (n=662): time 1.127e-05/3.598, allocations: 0 / 1.017 GB, free: 14.11 MB / 490.8 MB Notification: Performance of matching and sorting (n=687): time 0.46/4.058, allocations: 25.01 MB / 1.041 GB, free: 69.41 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/4.058, allocations: 144.8 kB / 1.041 GB, free: 69.31 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/4.068, allocations: 3.574 MB / 1.045 GB, free: 68.98 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001695/4.07, allocations: 125.4 kB / 1.045 GB, free: 68.95 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003933/4.074, allocations: 4.014 MB / 1.049 GB, free: 67.11 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004053/4.078, allocations: 2.28 MB / 1.051 GB, free: 65.63 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/4.08, allocations: 132.2 kB / 1.051 GB, free: 65.63 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0009117/4.08, allocations: 0.6015 MB / 1.052 GB, free: 65.31 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01294/4.093, allocations: 4.435 MB / 1.056 GB, free: 65.29 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01425/4.108, allocations: 6.003 MB / 1.062 GB, free: 63.64 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01419/4.122, allocations: 5.478 MB / 1.067 GB, free: 63.53 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-05/4.122, allocations: 10.88 kB / 1.067 GB, free: 63.53 MB / 490.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.03778/4.16, allocations: 13.35 MB / 1.08 GB, free: 63.07 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.757e-05/4.16, allocations: 22.62 kB / 1.081 GB, free: 63.07 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/4.16, allocations: 45.44 kB / 1.081 GB, free: 63.07 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01404/4.174, allocations: 3.973 MB / 1.084 GB, free: 62.98 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01052/4.185, allocations: 1.305 MB / 1.086 GB, free: 62.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02708/4.212, allocations: 16.73 MB / 1.102 GB, free: 56.38 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00886/4.221, allocations: 358.4 kB / 1.102 GB, free: 56.38 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/4.223, allocations: 294.7 kB / 1.103 GB, free: 56.38 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.003235/4.226, allocations: 471.6 kB / 1.103 GB, free: 56.25 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002478/4.229, allocations: 0.53 MB / 1.104 GB, free: 55.96 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03892/4.268, allocations: 13.14 MB / 1.116 GB, free: 54.39 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000255/4.268, allocations: 149.2 kB / 1.117 GB, free: 54.32 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-05/4.268, allocations: 10.12 kB / 1.117 GB, free: 54.32 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001645/4.268, allocations: 36.33 kB / 1.117 GB, free: 54.32 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07718/4.346, allocations: 26.5 MB / 1.143 GB, free: 42.46 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001784/4.346, allocations: 2.844 kB / 1.143 GB, free: 42.46 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0117/4.358, allocations: 0.8563 MB / 1.143 GB, free: 42.44 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01941/4.377, allocations: 3.93 MB / 1.147 GB, free: 41.25 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002625/4.38, allocations: 149.9 kB / 1.147 GB, free: 41.17 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04172/4.422, allocations: 20.66 MB / 1.168 GB, free: 25.81 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/4.422, allocations: 7.328 kB / 1.168 GB, free: 25.81 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06921/4.491, allocations: 19.8 MB / 1.187 GB, free: 10.47 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006704/4.498, allocations: 1.642 MB / 1.188 GB, free: 8.984 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003216/4.501, allocations: 112 kB / 1.189 GB, free: 8.875 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007988/4.509, allocations: 305.2 kB / 1.189 GB, free: 8.66 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002887/4.512, allocations: 0.5061 MB / 1.189 GB, free: 8.34 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001926/4.514, allocations: 186.8 kB / 1.19 GB, free: 8.172 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007636/4.522, allocations: 2.7 MB / 1.192 GB, free: 5.738 MB / 490.8 MB Notification: Performance of sort global known variables: time 9.52e-07/4.522, allocations: 0 / 1.192 GB, free: 5.738 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01337/4.535, allocations: 1.98 MB / 1.194 GB, free: 3.766 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.07166/4.607, allocations: 22.32 MB / 1.216 GB, free: 1.719 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.4125/5.019, allocations: 12.32 MB / 1.228 GB, free: 87.93 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/5.019, allocations: 0 / 1.228 GB, free: 87.93 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01998/5.039, allocations: 6.545 MB / 1.234 GB, free: 87.06 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/5.051, allocations: 1.179 MB / 1.235 GB, free: 87.04 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07641/5.127, allocations: 22.34 MB / 1.257 GB, free: 83.82 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01527/5.143, allocations: 6.905 MB / 1.264 GB, free: 82.84 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/5.154, allocations: 4.042 MB / 1.268 GB, free: 82.84 MB / 0.4949 GB Notification: Performance of SimCode: time 1.703e-06/5.154, allocations: 0 / 1.268 GB, free: 82.84 MB / 0.4949 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_IMC_InitializeCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFMU.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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o] Error 1