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_YD.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_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.002458/0.002458, allocations: 181.8 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.143/2.143, 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.001088/0.001087, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.675e-05, allocations: 7.984 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 47.57 MB / 369.2 MB, free: 2.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.573/0.6742, allocations: 153.1 MB / 0.5101 GB, free: 5.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004315/0.6747, allocations: 101.9 kB / 0.5102 GB, free: 4.965 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.442/3.116, allocations: 466.1 MB / 0.9653 GB, free: 36.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.344e-06/3.116, allocations: 0 / 0.9653 GB, free: 36.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001324/3.118, allocations: 334.4 kB / 0.9656 GB, free: 36.19 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.06922/3.187, allocations: 13.58 MB / 0.9789 GB, free: 27.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/3.187, allocations: 8.031 kB / 0.9789 GB, free: 27.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01045/3.198, allocations: 1.997 MB / 0.9808 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0563/3.254, allocations: 6.716 MB / 0.9874 GB, free: 18.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04616/3.3, allocations: 11.46 MB / 0.9986 GB, free: 7.359 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00221/3.302, allocations: 1.043 MB / 0.9996 GB, free: 6.312 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008606/3.311, allocations: 1.359 MB / 1.001 GB, free: 4.953 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5183/3.829, allocations: 23.79 MB / 1.024 GB, free: 38.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001021/3.83, allocations: 22.89 kB / 1.024 GB, free: 38.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00736/3.838, allocations: 0.5831 MB / 1.025 GB, free: 38.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002162/3.84, allocations: 0.9354 MB / 1.026 GB, free: 38.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07272/3.913, allocations: 21.63 MB / 1.047 GB, free: 38.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.21/4.123, allocations: 77.39 MB / 1.122 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04969/4.173, allocations: 30.56 MB / 1.152 GB, free: 5.414 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02841/4.201, allocations: 10.65 MB / 1.163 GB, free: 0.875 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.106/4.307, allocations: 33.36 MB / 1.195 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/4.307, allocations: 125.4 kB / 1.195 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1011): time 1.538e-05/4.307, allocations: 2.188 kB / 1.195 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1019): time 0.5413/4.849, allocations: 38.49 MB / 1.233 GB, free: 88.98 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/4.849, allocations: 166.4 kB / 1.233 GB, free: 88.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01302/4.862, allocations: 4.289 MB / 1.237 GB, free: 88.54 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00266/4.865, allocations: 165.6 kB / 1.237 GB, free: 88.51 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004622/4.869, allocations: 4.9 MB / 1.242 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005817/4.875, allocations: 3.345 MB / 1.245 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002506/4.878, allocations: 173.8 kB / 1.246 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001296/4.879, allocations: 0.7118 MB / 1.246 GB, free: 83.51 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01755/4.897, allocations: 6.659 MB / 1.253 GB, free: 83.48 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01995/4.917, allocations: 8.378 MB / 1.261 GB, free: 81.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02088/4.938, allocations: 7.958 MB / 1.269 GB, free: 81.67 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/4.938, allocations: 20.44 kB / 1.269 GB, free: 81.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.06157/4.999, allocations: 20.62 MB / 1.289 GB, free: 76.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.821e-05/4.999, allocations: 23.97 kB / 1.289 GB, free: 76.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/5, allocations: 42.53 kB / 1.289 GB, free: 76.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03001/5.03, allocations: 8.44 MB / 1.297 GB, free: 74.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01194/5.042, allocations: 1.392 MB / 1.299 GB, free: 73.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05282/5.094, allocations: 27.79 MB / 1.326 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01119/5.106, allocations: 430.3 kB / 1.326 GB, free: 56.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003256/5.109, allocations: 373.8 kB / 1.326 GB, free: 56.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.005831/5.115, allocations: 0.5544 MB / 1.327 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004369/5.119, allocations: 0.6953 MB / 1.328 GB, free: 56.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06273/5.182, allocations: 21.01 MB / 1.348 GB, free: 42.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004152/5.182, allocations: 248.7 kB / 1.348 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.67e-05/5.183, allocations: 12 kB / 1.348 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002916/5.183, allocations: 43.25 kB / 1.349 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1098/5.293, allocations: 39.9 MB / 1.387 GB, free: 8.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001537/5.293, allocations: 4 kB / 1.387 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009249/5.302, allocations: 0.9745 MB / 1.388 GB, free: 8.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4444/5.747, allocations: 8.521 MB / 1.397 GB, free: 87.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002699/5.749, allocations: 217.8 kB / 1.397 GB, free: 87.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06065/5.81, allocations: 32.03 MB / 1.428 GB, free: 76.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/5.81, allocations: 7.609 kB / 1.428 GB, free: 76.99 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08178/5.892, allocations: 31.28 MB / 1.459 GB, free: 74.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009086/5.901, allocations: 2.353 MB / 1.461 GB, free: 73.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004063/5.905, allocations: 164.3 kB / 1.461 GB, free: 73.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009833/5.915, allocations: 386.8 kB / 1.462 GB, free: 73.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004294/5.919, allocations: 0.7923 MB / 1.462 GB, free: 73.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002447/5.922, allocations: 273.3 kB / 1.463 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009022/5.931, allocations: 3.264 MB / 1.466 GB, free: 72.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.062e-06/5.931, allocations: 0 / 1.466 GB, free: 72.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01706/5.948, allocations: 2.643 MB / 1.468 GB, free: 71.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.08645/6.035, allocations: 33.2 MB / 1.501 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04627/6.081, allocations: 17.41 MB / 1.518 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/6.081, allocations: 0 / 1.518 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02926/6.11, allocations: 10.12 MB / 1.528 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01433/6.125, allocations: 1.571 MB / 1.529 GB, free: 32.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09823/6.223, allocations: 30.91 MB / 1.559 GB, free: 5.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4352/6.658, allocations: 9.805 MB / 1.569 GB, free: 84.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01555/6.674, allocations: 5.243 MB / 1.574 GB, free: 84.11 MB / 0.4948 GB Notification: Performance of SimCode: time 1.252e-06/6.674, allocations: 0 / 1.574 GB, free: 84.11 MB / 0.4948 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_YDCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFMU.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_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o] Error 1