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.00164/0.00164, allocations: 179.9 kB / 13.66 MB, free: 1.656 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.322/2.322, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001154/0.001153, allocations: 82.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.659e-05/5.69e-05, allocations: 4 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 47.57 MB / 369.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5691/0.6748, allocations: 152.8 MB / 0.5098 GB, free: 4.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003961/0.6753, allocations: 100.2 kB / 0.5099 GB, free: 4.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495/3.171, allocations: 456.7 MB / 0.9559 GB, free: 33.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.756e-06/3.171, allocations: 3.938 kB / 0.9559 GB, free: 33.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001328/3.172, allocations: 332.1 kB / 0.9562 GB, free: 33.89 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.06836/3.24, allocations: 13.28 MB / 0.9692 GB, free: 28.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/3.24, allocations: 11.94 kB / 0.9692 GB, free: 28.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01216/3.253, allocations: 2.302 MB / 0.9714 GB, free: 27.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05536/3.308, allocations: 6.473 MB / 0.9777 GB, free: 23.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04323/3.351, allocations: 11.5 MB / 0.989 GB, free: 11.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002203/3.353, allocations: 1.053 MB / 0.99 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008022/3.362, allocations: 1.372 MB / 0.9913 GB, free: 9.504 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08769/3.449, allocations: 23.37 MB / 1.014 GB, free: 1.691 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009186/3.45, allocations: 23.83 kB / 1.014 GB, free: 1.668 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006765/3.457, allocations: 0.5844 MB / 1.015 GB, free: 1.098 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001738/3.459, allocations: 0.9349 MB / 1.016 GB, free: 164 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4773/3.936, allocations: 20.99 MB / 1.036 GB, free: 49.99 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2006/4.137, allocations: 75.13 MB / 1.11 GB, free: 26.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04414/4.181, allocations: 28.25 MB / 1.137 GB, free: 5.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02509/4.206, allocations: 9.359 MB / 1.146 GB, free: 1.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1054/4.312, allocations: 30.16 MB / 1.176 GB, free: 13.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/4.312, allocations: 113.1 kB / 1.176 GB, free: 13.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=934): time 1.437e-05/4.312, allocations: 7.797 kB / 1.176 GB, free: 13.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=942): time 0.5176/4.829, allocations: 33.78 MB / 1.209 GB, free: 73.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/4.83, allocations: 158.9 kB / 1.209 GB, free: 73.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01295/4.843, allocations: 4.1 MB / 1.213 GB, free: 73.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002261/4.845, allocations: 156.7 kB / 1.213 GB, free: 73.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004736/4.85, allocations: 5.06 MB / 1.218 GB, free: 70.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005338/4.855, allocations: 3.104 MB / 1.221 GB, free: 68.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002309/4.857, allocations: 168.8 kB / 1.221 GB, free: 68.46 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001266/4.859, allocations: 0.6908 MB / 1.222 GB, free: 68.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01584/4.875, allocations: 5.962 MB / 1.228 GB, free: 68.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01794/4.893, allocations: 7.837 MB / 1.235 GB, free: 66.16 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01884/4.911, allocations: 7.263 MB / 1.243 GB, free: 66.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/4.912, allocations: 16.28 kB / 1.243 GB, free: 66.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.05311/4.965, allocations: 18.1 MB / 1.26 GB, free: 65.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.645e-05/4.965, allocations: 26.84 kB / 1.26 GB, free: 65.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/4.965, allocations: 51.97 kB / 1.26 GB, free: 65.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01998/4.985, allocations: 5.867 MB / 1.266 GB, free: 64.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/4.998, allocations: 1.516 MB / 1.267 GB, free: 64.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03385/5.031, allocations: 19.96 MB / 1.287 GB, free: 51.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01077/5.042, allocations: 432.1 kB / 1.287 GB, free: 51.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002804/5.045, allocations: 386.3 kB / 1.288 GB, free: 50.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (800): * Single equations (assignments): 747 * 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.004412/5.05, allocations: 0.5574 MB / 1.288 GB, free: 50.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003341/5.053, allocations: 0.6555 MB / 1.289 GB, free: 50.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05463/5.108, allocations: 18.08 MB / 1.307 GB, free: 42.51 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03933/5.147, allocations: 14.29 MB / 1.321 GB, free: 34.96 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.474e-05/5.147, allocations: 4 kB / 1.321 GB, free: 34.96 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002173/5.147, allocations: 47.27 kB / 1.321 GB, free: 34.95 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.102/5.249, allocations: 35.32 MB / 1.355 GB, free: 5.387 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001179/5.249, allocations: 4 kB / 1.355 GB, free: 5.383 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009677/5.259, allocations: 1.038 MB / 1.356 GB, free: 4.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02126/5.28, allocations: 5.981 MB / 1.362 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002539/5.283, allocations: 214.8 kB / 1.362 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4563/5.739, allocations: 24.47 MB / 1.386 GB, free: 78.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/5.739, allocations: 8.297 kB / 1.386 GB, free: 78.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07317/5.813, allocations: 27 MB / 1.412 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008505/5.821, allocations: 2.096 MB / 1.414 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003891/5.825, allocations: 150 kB / 1.415 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009275/5.834, allocations: 376.6 kB / 1.415 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00373/5.838, allocations: 0.7028 MB / 1.416 GB, free: 77.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002319/5.841, allocations: 260.3 kB / 1.416 GB, free: 77.28 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008466/5.849, allocations: 3.109 MB / 1.419 GB, free: 77.08 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.62e-07/5.849, allocations: 0 / 1.419 GB, free: 77.08 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01638/5.865, allocations: 2.494 MB / 1.421 GB, free: 77.08 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 498 * 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%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(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.07389/5.939, allocations: 28.94 MB / 1.45 GB, free: 70.92 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04283/5.982, allocations: 15.4 MB / 1.465 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/5.982, allocations: 1.438 kB / 1.465 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02578/6.008, allocations: 8.719 MB / 1.473 GB, free: 60.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01417/6.022, allocations: 1.487 MB / 1.475 GB, free: 60.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09601/6.118, allocations: 29.55 MB / 1.504 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01943/6.138, allocations: 9.047 MB / 1.512 GB, free: 32.81 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01365/6.152, allocations: 5.342 MB / 1.518 GB, free: 27.83 MB / 0.4948 GB Notification: Performance of SimCode: time 1.774e-06/6.152, allocations: 0 / 1.518 GB, free: 27.83 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_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