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_Conveyor.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_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",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.001528/0.001528, allocations: 186 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.864/1.864, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001095/0.001095, allocations: 87.41 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003956, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3163, allocations: 47.57 MB / 374.7 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.8175, allocations: 151.4 MB / 0.5138 GB, free: 65.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003423/0.8179, allocations: 106.7 kB / 0.5139 GB, free: 65.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.709/2.527, allocations: 357.4 MB / 0.8629 GB, free: 34.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.487e-06/2.527, allocations: 0 / 0.8629 GB, free: 34.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008962/2.528, allocations: 249.5 kB / 0.8632 GB, free: 34.65 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: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.0521/2.58, allocations: 11.14 MB / 0.874 GB, free: 30.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/2.58, allocations: 11.16 kB / 0.8741 GB, free: 30.95 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007878/2.588, allocations: 1.583 MB / 0.8756 GB, free: 30.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04711/2.635, allocations: 5.432 MB / 0.8809 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03066/2.666, allocations: 9.505 MB / 0.8902 GB, free: 29.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001126/2.667, allocations: 0.8032 MB / 0.891 GB, free: 29.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005046/2.672, allocations: 1.065 MB / 0.892 GB, free: 29.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05767/2.729, allocations: 18.13 MB / 0.9097 GB, free: 27.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006836/2.73, allocations: 12.25 kB / 0.9097 GB, free: 27.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004647/2.735, allocations: 467.2 kB / 0.9102 GB, free: 27.78 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001142/2.736, allocations: 0.7455 MB / 0.9109 GB, free: 27.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05128/2.787, allocations: 16.84 MB / 0.9274 GB, free: 21.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5383/3.326, allocations: 58.8 MB / 0.9848 GB, free: 39.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03679/3.363, allocations: 26.17 MB / 1.01 GB, free: 24.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06438/3.427, allocations: 22.51 MB / 1.032 GB, free: 23.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01484/3.442, allocations: 5.525 MB / 1.038 GB, free: 23.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=706): time 1.364e-05/3.442, allocations: 2.906 kB / 1.038 GB, free: 23.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=724): time 0.1548/3.597, allocations: 43.78 MB / 1.08 GB, free: 30.53 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002841/3.597, allocations: 436.4 kB / 1.081 GB, free: 30.08 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00788/3.605, allocations: 3.504 MB / 1.084 GB, free: 28.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001571/3.607, allocations: 126.2 kB / 1.084 GB, free: 28.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004266/3.611, allocations: 4.067 MB / 1.088 GB, free: 25.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003773/3.615, allocations: 2.425 MB / 1.091 GB, free: 23.63 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009554/3.616, allocations: 134.8 kB / 1.091 GB, free: 23.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006649/3.616, allocations: 0.5977 MB / 1.091 GB, free: 23.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01122/3.628, allocations: 4.486 MB / 1.096 GB, free: 21.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01344/3.641, allocations: 6.198 MB / 1.102 GB, free: 17.38 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01424/3.655, allocations: 5.508 MB / 1.107 GB, free: 14.86 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-05/3.656, allocations: 13.19 kB / 1.107 GB, free: 14.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=947) (initialization): time 0.0395/3.695, allocations: 13.36 MB / 1.12 GB, free: 9.223 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.237e-05/3.695, allocations: 25.03 kB / 1.12 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/3.695, allocations: 44.09 kB / 1.12 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01451/3.71, allocations: 3.857 MB / 1.124 GB, free: 6.508 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01106/3.721, allocations: 1.318 MB / 1.125 GB, free: 5.484 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02999/3.751, allocations: 16.81 MB / 1.142 GB, free: 5.527 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008584/3.76, allocations: 381.2 kB / 1.142 GB, free: 5.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001897/3.762, allocations: 300.1 kB / 1.143 GB, free: 4.957 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (692): * Single equations (assignments): 651 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.01203/3.774, allocations: 3.942 MB / 1.146 GB, free: 1.609 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002078/3.776, allocations: 0.5464 MB / 1.147 GB, free: 1.062 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.046/3.822, allocations: 13.65 MB / 1.16 GB, free: 5.371 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004716/3.822, allocations: 160.5 kB / 1.16 GB, free: 5.23 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.631e-05/3.822, allocations: 8 kB / 1.16 GB, free: 5.223 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002018/3.823, allocations: 30.38 kB / 1.16 GB, free: 5.223 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.451/4.274, allocations: 27.53 MB / 1.187 GB, free: 88.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.938e-05/4.274, allocations: 0 / 1.187 GB, free: 88.66 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007982/4.282, allocations: 0.8957 MB / 1.188 GB, free: 88.66 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01473/4.296, allocations: 4.001 MB / 1.192 GB, free: 88.55 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00171/4.298, allocations: 161.4 kB / 1.192 GB, free: 88.55 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0303/4.329, allocations: 21.01 MB / 1.213 GB, free: 78.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/4.329, allocations: 6.312 kB / 1.213 GB, free: 78.18 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05095/4.38, allocations: 20.02 MB / 1.232 GB, free: 77.13 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006016/4.386, allocations: 1.657 MB / 1.234 GB, free: 77.04 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002395/4.388, allocations: 123.6 kB / 1.234 GB, free: 77.04 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006939/4.395, allocations: 299.3 kB / 1.234 GB, free: 77.04 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002568/4.398, allocations: 0.526 MB / 1.235 GB, free: 77.02 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001133/4.399, allocations: 195.5 kB / 1.235 GB, free: 77.02 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006619/4.405, allocations: 2.68 MB / 1.238 GB, free: 76.84 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.01e-07/4.406, allocations: 0 / 1.238 GB, free: 76.84 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0116/4.417, allocations: 2.025 MB / 1.24 GB, free: 76.84 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,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,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (486): * Single equations (assignments): 442 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.05437/4.472, allocations: 21.71 MB / 1.261 GB, free: 66.86 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03194/4.504, allocations: 11.84 MB / 1.272 GB, free: 61.91 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/4.504, allocations: 1.688 kB / 1.272 GB, free: 61.91 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01918/4.523, allocations: 6.761 MB / 1.279 GB, free: 58.78 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01041/4.533, allocations: 1.199 MB / 1.28 GB, free: 58.45 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5404/5.074, allocations: 98.16 MB / 1.376 GB, free: 85.07 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/5.087, allocations: 6.979 MB / 1.383 GB, free: 84.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01069/5.098, allocations: 4.195 MB / 1.387 GB, free: 84.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.393e-06/5.098, allocations: 0 / 1.387 GB, free: 84.2 MB / 0.4949 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_ConveyorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:583:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = 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_ConveyorFunctions.cpp:583:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = 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_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFMU.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_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1