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.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",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.001496/0.001501, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.879/1.879, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001152/0.001152, allocations: 98.84 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005221/0.0005224, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3224, allocations: 47.57 MB / 374.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5267/0.8491, allocations: 162.1 MB / 0.5242 GB, free: 65.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.8495, allocations: 107.6 kB / 0.5243 GB, free: 65.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.723/3.573, allocations: 0.5711 GB / 1.095 GB, free: 32.06 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.126e-06/3.573, allocations: 0 / 1.095 GB, free: 32.06 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001688/3.575, allocations: 426.8 kB / 1.096 GB, free: 31.99 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.08955/3.664, allocations: 18.04 MB / 1.113 GB, free: 26.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/3.664, allocations: 14.44 kB / 1.113 GB, free: 26.34 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01557/3.68, allocations: 2.989 MB / 1.116 GB, free: 26.13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07033/3.75, allocations: 8.52 MB / 1.125 GB, free: 25.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05107/3.801, allocations: 14.6 MB / 1.139 GB, free: 20.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002173/3.804, allocations: 1.342 MB / 1.14 GB, free: 18.71 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009255/3.813, allocations: 1.742 MB / 1.142 GB, free: 17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9075/4.72, allocations: 31.17 MB / 1.172 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001181/4.722, allocations: 22.78 kB / 1.172 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008161/4.73, allocations: 0.7496 MB / 1.173 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001846/4.732, allocations: 1.191 MB / 1.174 GB, free: 28.07 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08665/4.818, allocations: 27.66 MB / 1.201 GB, free: 27.9 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2829/5.101, allocations: 97.98 MB / 1.297 GB, free: 6.742 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08212/5.184, allocations: 35.55 MB / 1.332 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5778/5.761, allocations: 40.08 MB / 1.371 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/5.762, allocations: 153 kB / 1.371 GB, free: 77.03 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1283): time 1.826e-05/5.762, allocations: 2.406 kB / 1.371 GB, free: 77.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1291): time 0.5576/6.319, allocations: 106 MB / 1.475 GB, free: 64.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/6.32, allocations: 191.4 kB / 1.475 GB, free: 64.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01395/6.333, allocations: 5.028 MB / 1.48 GB, free: 62.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003005/6.337, allocations: 201.4 kB / 1.48 GB, free: 62.49 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004889/6.341, allocations: 6.252 MB / 1.486 GB, free: 57.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007013/6.349, allocations: 4.236 MB / 1.49 GB, free: 54.36 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0035/6.352, allocations: 219.7 kB / 1.49 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001646/6.354, allocations: 0.8083 MB / 1.491 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0226/6.376, allocations: 8.355 MB / 1.499 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02664/6.403, allocations: 10.48 MB / 1.509 GB, free: 37.88 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02644/6.43, allocations: 9.949 MB / 1.519 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.391e-05/6.43, allocations: 16 kB / 1.519 GB, free: 29.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.5208/6.951, allocations: 25.45 MB / 1.544 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.531e-05/6.951, allocations: 30.84 kB / 1.544 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001743/6.951, allocations: 52.72 kB / 1.544 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0306/6.981, allocations: 9.028 MB / 1.553 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01563/6.997, allocations: 1.891 MB / 1.555 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05853/7.056, allocations: 30.65 MB / 1.585 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01352/7.069, allocations: 0.5575 MB / 1.585 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003861/7.073, allocations: 468.3 kB / 1.586 GB, free: 58.32 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.02235/7.096, allocations: 6.749 MB / 1.592 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005505/7.101, allocations: 0.8554 MB / 1.593 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08331/7.185, allocations: 25.76 MB / 1.618 GB, free: 57.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06693/7.252, allocations: 20.28 MB / 1.638 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.881e-05/7.252, allocations: 7.062 kB / 1.638 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002764/7.252, allocations: 60.55 kB / 1.638 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1351/7.387, allocations: 48.86 MB / 1.686 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001891/7.387, allocations: 4 kB / 1.686 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01243/7.4, allocations: 1.382 MB / 1.687 GB, free: 28.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03029/7.43, allocations: 9.121 MB / 1.696 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003273/7.433, allocations: 278.1 kB / 1.696 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06358/7.497, allocations: 36.89 MB / 1.732 GB, free: 1.605 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/7.497, allocations: 9.344 kB / 1.732 GB, free: 1.602 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6034/8.101, allocations: 40.63 MB / 1.772 GB, free: 89.61 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01101/8.112, allocations: 2.824 MB / 1.775 GB, free: 89.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005035/8.117, allocations: 193.3 kB / 1.775 GB, free: 89.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01208/8.129, allocations: 0.5116 MB / 1.776 GB, free: 89.52 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005147/8.134, allocations: 0.9771 MB / 1.777 GB, free: 89.51 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003322/8.137, allocations: 344.5 kB / 1.777 GB, free: 89.51 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01001/8.147, allocations: 3.837 MB / 1.781 GB, free: 89.29 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.102e-06/8.147, allocations: 0 / 1.781 GB, free: 89.29 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01977/8.167, allocations: 3.252 MB / 1.784 GB, free: 89.29 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.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 (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.1073/8.275, allocations: 40.27 MB / 1.823 GB, free: 82.04 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.06034/8.335, allocations: 21.52 MB / 1.844 GB, free: 73.34 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/8.335, allocations: 0.875 kB / 1.844 GB, free: 73.34 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.03676/8.372, allocations: 12.43 MB / 1.856 GB, free: 67.91 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01813/8.39, allocations: 1.972 MB / 1.858 GB, free: 67.28 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7795/9.169, allocations: 159.5 MB / 2.014 GB, free: 73.72 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02877/9.198, allocations: 11.57 MB / 2.025 GB, free: 72.68 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02038/9.219, allocations: 6.833 MB / 2.032 GB, free: 72.68 MB / 0.5418 GB Notification: Performance of SimCode: time 2.515e-06/9.219, allocations: 0 / 2.032 GB, free: 72.68 MB / 0.5418 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_IMS_StartCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_IMS_StartFunctions.cpp:588:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_IMS_StartCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFMU.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_IMS_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o] Error 1