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_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",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.001437/0.001437, allocations: 181.7 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.855/1.855, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001106/0.001106, allocations: 95.09 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000556/0.000556, allocations: 8 kB / 327.1 MB, free: 72 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3556, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.8582, allocations: 152.9 MB / 0.5152 GB, free: 65.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003898/0.8587, allocations: 110.1 kB / 0.5153 GB, free: 65.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.945/2.804, allocations: 457 MB / 0.9616 GB, free: 11.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.282e-06/2.804, allocations: 0 / 0.9616 GB, free: 11.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001206/2.805, allocations: 331.6 kB / 0.9619 GB, free: 10.7 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: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.07056/2.876, allocations: 14.08 MB / 0.9757 GB, free: 12.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/2.876, allocations: 12.03 kB / 0.9757 GB, free: 12.49 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01181/2.888, allocations: 2.333 MB / 0.978 GB, free: 10.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05707/2.945, allocations: 6.502 MB / 0.9843 GB, free: 3.617 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.752/3.697, allocations: 11.54 MB / 0.9956 GB, free: 28.79 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001677/3.699, allocations: 1.051 MB / 0.9966 GB, free: 28.76 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007119/3.706, allocations: 1.372 MB / 0.9979 GB, free: 28.76 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07718/3.783, allocations: 23.66 MB / 1.021 GB, free: 27.11 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009582/3.784, allocations: 21.45 kB / 1.021 GB, free: 27.11 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005759/3.79, allocations: 0.587 MB / 1.022 GB, free: 27.11 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001423/3.791, allocations: 0.9364 MB / 1.023 GB, free: 27.08 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06295/3.854, allocations: 21.38 MB / 1.043 GB, free: 26.95 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1884/4.042, allocations: 75.14 MB / 1.117 GB, free: 10.25 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04776/4.09, allocations: 28.43 MB / 1.145 GB, free: 4.461 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.8536/4.944, allocations: 29.7 MB / 1.174 GB, free: 73.84 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001163/4.944, allocations: 122.2 kB / 1.174 GB, free: 73.79 MB / 0.495 GB Notification: Performance of pre-optimization done (n=944): time 1.494e-05/4.944, allocations: 0 / 1.174 GB, free: 73.79 MB / 0.495 GB Notification: Performance of matching and sorting (n=952): time 0.3176/5.262, allocations: 67.58 MB / 1.24 GB, free: 64.27 MB / 0.495 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.785e-05/5.262, allocations: 165.7 kB / 1.24 GB, free: 64.16 MB / 0.495 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/5.272, allocations: 4.136 MB / 1.244 GB, free: 63.82 MB / 0.495 GB Notification: Performance of collectPreVariables (initialization): time 0.002039/5.274, allocations: 161.3 kB / 1.244 GB, free: 63.79 MB / 0.495 GB Notification: Performance of collectInitialEqns (initialization): time 0.00381/5.278, allocations: 5.044 MB / 1.249 GB, free: 61.06 MB / 0.495 GB Notification: Performance of collectInitialBindings (initialization): time 0.004988/5.283, allocations: 3.127 MB / 1.252 GB, free: 59.03 MB / 0.495 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002276/5.285, allocations: 165.9 kB / 1.252 GB, free: 59.03 MB / 0.495 GB Notification: Performance of setup shared object (initialization): time 0.00102/5.286, allocations: 0.6941 MB / 1.253 GB, free: 58.7 MB / 0.495 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01611/5.303, allocations: 6.111 MB / 1.259 GB, free: 58.67 MB / 0.495 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01816/5.321, allocations: 7.987 MB / 1.267 GB, free: 56.69 MB / 0.495 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01934/5.34, allocations: 7.391 MB / 1.274 GB, free: 56.52 MB / 0.495 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.044e-05/5.34, allocations: 15.86 kB / 1.274 GB, free: 56.52 MB / 0.495 GB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05451/5.395, allocations: 18.38 MB / 1.292 GB, free: 50.9 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 8.846e-05/5.395, allocations: 27.22 kB / 1.292 GB, free: 50.9 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000152/5.395, allocations: 52.83 kB / 1.292 GB, free: 50.9 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/5.415, allocations: 5.912 MB / 1.298 GB, free: 49.04 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01227/5.428, allocations: 1.535 MB / 1.299 GB, free: 48.98 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03316/5.461, allocations: 20.11 MB / 1.319 GB, free: 30.32 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/5.471, allocations: 442.3 kB / 1.319 GB, free: 29.98 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002742/5.474, allocations: 372.3 kB / 1.32 GB, free: 29.64 MB / 0.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01515/5.489, allocations: 5.194 MB / 1.325 GB, free: 25.29 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002941/5.492, allocations: 0.6667 MB / 1.325 GB, free: 24.62 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05263/5.545, allocations: 18.33 MB / 1.343 GB, free: 8.867 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4267/5.971, allocations: 14.39 MB / 1.357 GB, free: 69.02 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.234e-05/5.971, allocations: 8.734 kB / 1.357 GB, free: 69.02 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001905/5.972, allocations: 42.47 kB / 1.357 GB, free: 69.02 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09957/6.071, allocations: 35.81 MB / 1.392 GB, free: 67.79 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001283/6.071, allocations: 3.688 kB / 1.392 GB, free: 67.79 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009425/6.081, allocations: 1.059 MB / 1.393 GB, free: 67.79 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02048/6.101, allocations: 5.989 MB / 1.399 GB, free: 67.61 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00226/6.104, allocations: 207.1 kB / 1.399 GB, free: 67.61 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03909/6.143, allocations: 24.46 MB / 1.423 GB, free: 57.67 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/6.143, allocations: 2.531 kB / 1.423 GB, free: 57.67 MB / 0.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.071/6.214, allocations: 27.59 MB / 1.45 GB, free: 47 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007754/6.222, allocations: 2.116 MB / 1.452 GB, free: 46.16 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0033/6.225, allocations: 147.8 kB / 1.452 GB, free: 46.05 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008657/6.234, allocations: 372 kB / 1.453 GB, free: 45.95 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003488/6.237, allocations: 0.7179 MB / 1.453 GB, free: 45.8 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001737/6.239, allocations: 254 kB / 1.454 GB, free: 45.74 MB / 0.495 GB Notification: Performance of sorting global known variables: time 0.007951/6.247, allocations: 3.149 MB / 1.457 GB, free: 44.58 MB / 0.495 GB Notification: Performance of sort global known variables: time 1.873e-06/6.247, allocations: 1.844 kB / 1.457 GB, free: 44.58 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.0146/6.262, allocations: 2.508 MB / 1.459 GB, free: 44.32 MB / 0.495 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 6 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.07348/6.335, allocations: 29.39 MB / 1.488 GB, free: 28.22 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.04136/6.376, allocations: 15.73 MB / 1.503 GB, free: 14.53 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/6.377, allocations: 0 / 1.503 GB, free: 14.53 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.02519/6.402, allocations: 8.886 MB / 1.512 GB, free: 6.754 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01299/6.415, allocations: 1.49 MB / 1.513 GB, free: 5.645 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.632/7.047, allocations: 124.7 MB / 1.635 GB, free: 28.68 MB / 0.5107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02013/7.067, allocations: 9.043 MB / 1.644 GB, free: 27.7 MB / 0.5107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01394/7.081, allocations: 5.332 MB / 1.649 GB, free: 27.7 MB / 0.5107 GB Notification: Performance of SimCode: time 1.483e-06/7.081, allocations: 0 / 1.649 GB, free: 27.7 MB / 0.5107 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_DOLCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLFunctions.cpp:508:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFMU.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_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o] Error 1