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.002247/0.002247, allocations: 182.5 kB / 16.4 MB, free: 5.75 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.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001129/0.001129, allocations: 105.4 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003846, allocations: 16 kB / 327.1 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3202, allocations: 47.57 MB / 374.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.03649/0.3567, allocations: 26.32 MB / 401 MB, free: 22.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.3774, allocations: 8.646 MB / 409.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006058/0.3835, allocations: 187.3 kB / 409.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00758/0.3911, allocations: 1.8 MB / 411.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01288/0.404, allocations: 3.172 MB / 414.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006794/0.4109, allocations: 1.424 MB / 416.2 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02477/0.4357, allocations: 11.53 MB / 427.7 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04584/0.4815, allocations: 17.42 MB / 445.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.4919, allocations: 4.49 MB / 449.6 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.012/0.504, allocations: 4.977 MB / 454.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003542/0.5076, allocations: 0.7266 MB / 455.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006077/0.5137, allocations: 1.019 MB / 456.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004809/0.5185, allocations: 2.313 MB / 458.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005315/0.5239, allocations: 2.41 MB / 461.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03224/0.5562, allocations: 21.02 MB / 482.1 MB, free: 5.059 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5562, allocations: 0 / 482.1 MB, free: 5.059 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5562, allocations: 0 / 482.1 MB, free: 5.059 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006107/0.5569, allocations: 4 kB / 482.1 MB, free: 5.055 MB / 362.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.05399/0.6109, allocations: 12.41 MB / 494.5 MB, free: 8.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.6109, allocations: 8.031 kB / 494.5 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006739/0.6177, allocations: 1.539 MB / 496.1 MB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5908/1.208, allocations: 7.691 MB / 0.492 GB, free: 87.37 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02097/1.23, allocations: 7.209 MB / 0.499 GB, free: 84.4 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001502/1.231, allocations: 0.8001 MB / 0.4998 GB, free: 84.04 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004899/1.236, allocations: 1.059 MB / 0.5008 GB, free: 83.7 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05656/1.293, allocations: 17.51 MB / 0.5179 GB, free: 74.96 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005467/1.293, allocations: 28.52 kB / 0.5179 GB, free: 74.94 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003368/1.297, allocations: 447 kB / 0.5184 GB, free: 74.61 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008815/1.297, allocations: 0.6536 MB / 0.519 GB, free: 74.06 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04701/1.344, allocations: 16.91 MB / 0.5355 GB, free: 57.12 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1246/1.469, allocations: 57.24 MB / 0.5914 GB, free: 15.02 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05557/1.525, allocations: 39.99 MB / 0.6305 GB, free: 2.055 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03732/1.562, allocations: 12.47 MB / 0.6427 GB, free: 5.586 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.746e-05/1.562, allocations: 77.81 kB / 0.6427 GB, free: 5.5 MB / 442.8 MB Notification: Performance of pre-optimization done (n=410): time 7.294e-06/1.562, allocations: 0 / 0.6427 GB, free: 5.5 MB / 442.8 MB Notification: Performance of matching and sorting (n=435): time 0.3731/1.935, allocations: 22.26 MB / 0.6645 GB, free: 151.4 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/1.936, allocations: 123.1 kB / 0.6646 GB, free: 151.3 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/1.946, allocations: 4.718 MB / 0.6692 GB, free: 150.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008591/1.946, allocations: 97.42 kB / 0.6693 GB, free: 150.2 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003204/1.95, allocations: 4.559 MB / 0.6737 GB, free: 147.6 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002034/1.952, allocations: 1.49 MB / 0.6752 GB, free: 146.5 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007094/1.953, allocations: 131.4 kB / 0.6753 GB, free: 146.4 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000412/1.953, allocations: 0.5581 MB / 0.6759 GB, free: 145.9 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008276/1.961, allocations: 2.997 MB / 0.6788 GB, free: 144.8 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0099/1.971, allocations: 5.228 MB / 0.6839 GB, free: 140.7 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/1.982, allocations: 4.1 MB / 0.6879 GB, free: 138.9 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001489/1.982, allocations: 21.09 kB / 0.6879 GB, free: 138.9 MB / 458.8 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.0289/2.011, allocations: 9.837 MB / 0.6975 GB, free: 134.9 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.615e-05/2.011, allocations: 39.05 kB / 0.6976 GB, free: 134.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/2.011, allocations: 73.66 kB / 0.6976 GB, free: 134.9 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007459/2.019, allocations: 1.67 MB / 0.6993 GB, free: 134.5 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01039/2.029, allocations: 1.413 MB / 0.7006 GB, free: 134.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03347/2.063, allocations: 16.89 MB / 0.7171 GB, free: 123.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007502/2.07, allocations: 347.2 kB / 0.7175 GB, free: 122.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/2.072, allocations: 300 kB / 0.7178 GB, free: 122.4 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,69.4%) 28,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009501/2.081, allocations: 3.954 MB / 0.7216 GB, free: 118.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/2.083, allocations: 0.4978 MB / 0.7221 GB, free: 118 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02221/2.105, allocations: 7.934 MB / 0.7299 GB, free: 109.9 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-05/2.105, allocations: 44 kB / 0.7299 GB, free: 109.9 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.947e-05/2.105, allocations: 23.75 kB / 0.7299 GB, free: 109.9 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000109/2.105, allocations: 19.92 kB / 0.7299 GB, free: 109.8 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04525/2.15, allocations: 17.73 MB / 0.7472 GB, free: 91.96 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-05/2.15, allocations: 8 kB / 0.7473 GB, free: 91.96 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006298/2.157, allocations: 0.7609 MB / 0.748 GB, free: 91.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006751/2.163, allocations: 1.548 MB / 0.7495 GB, free: 89.62 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005725/2.164, allocations: 99.97 kB / 0.7496 GB, free: 89.53 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03149/2.196, allocations: 19.86 MB / 0.769 GB, free: 68.77 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/2.196, allocations: 12.06 kB / 0.769 GB, free: 68.76 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02694/2.223, allocations: 12.41 MB / 0.7811 GB, free: 55.97 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003722/2.226, allocations: 1.19 MB / 0.7823 GB, free: 54.76 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/2.228, allocations: 84.19 kB / 0.7824 GB, free: 54.68 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004562/2.232, allocations: 243.8 kB / 0.7826 GB, free: 54.44 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001169/2.233, allocations: 339.6 kB / 0.7829 GB, free: 54.1 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004331/2.234, allocations: 132 kB / 0.7831 GB, free: 53.97 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006905/2.241, allocations: 3.169 MB / 0.7861 GB, free: 50.81 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.224e-06/2.241, allocations: 0 / 0.7861 GB, free: 50.81 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01007/2.251, allocations: 1.901 MB / 0.788 GB, free: 48.91 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02996/2.281, allocations: 14.48 MB / 0.8021 GB, free: 34.14 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02152/2.302, allocations: 8.314 MB / 0.8103 GB, free: 25.78 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/2.302, allocations: 0 / 0.8103 GB, free: 25.78 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01251/2.315, allocations: 4.726 MB / 0.8149 GB, free: 20.97 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009725/2.325, allocations: 1.194 MB / 0.816 GB, free: 19.79 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4857/2.811, allocations: 107.5 MB / 0.921 GB, free: 73.91 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0123/2.823, allocations: 6.815 MB / 0.9277 GB, free: 67.64 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009299/2.832, allocations: 4.047 MB / 0.9316 GB, free: 63.59 MB / 458.8 MB Notification: Performance of SimCode: time 2.324e-06/2.832, allocations: 0 / 0.9316 GB, free: 63.59 MB / 458.8 MB 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=5 -DSUNDIALS_MINOR_VERSION=4 -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:112:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp106 = 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:112:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp106 = 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