Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.199e-05/3.22e-05, allocations: 5.406 kB / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07809/0.07815, allocations: 44.49 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4019/0.4801, allocations: 145 MB / 444.9 MB, free: 3.133 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/0.4804, allocations: 103.4 kB / 445 MB, free: 3.074 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 1.572/2.053, allocations: 357.9 MB / 0.7841 GB, free: 21.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.281e-06/2.053, allocations: 0 / 0.7841 GB, free: 21.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008353/2.053, allocations: 259.6 kB / 0.7843 GB, free: 21.23 MB / 410.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.04447/2.098, allocations: 10.52 MB / 0.7946 GB, free: 10.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/2.098, allocations: 12.03 kB / 0.7946 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04339/2.141, allocations: 5.398 MB / 0.7999 GB, free: 5.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03238/2.174, allocations: 9.451 MB / 0.8091 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001481/2.175, allocations: 0.8106 MB / 0.8099 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005276/2.181, allocations: 1.066 MB / 0.8109 GB, free: 9.766 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7269/2.908, allocations: 17.79 MB / 0.8283 GB, free: 35.09 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006121/2.908, allocations: 14.72 kB / 0.8283 GB, free: 35.09 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004555/2.913, allocations: 463.2 kB / 0.8288 GB, free: 35.09 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001295/2.914, allocations: 0.7439 MB / 0.8295 GB, free: 35.07 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04536/2.96, allocations: 16.41 MB / 0.8455 GB, free: 35.02 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1332/3.093, allocations: 58.1 MB / 0.9023 GB, free: 18 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03086/3.124, allocations: 25.96 MB / 0.9276 GB, free: 14.23 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01596/3.14, allocations: 7.062 MB / 0.9345 GB, free: 11.22 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05813/3.198, allocations: 22.42 MB / 0.9564 GB, free: 108 kB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01337/3.211, allocations: 5.377 MB / 0.9617 GB, free: 13.8 MB / 458.8 MB Notification: Performance of pre-optimization done (n=696): time 1.501e-05/3.211, allocations: 0 / 0.9617 GB, free: 13.8 MB / 458.8 MB Notification: Performance of matching and sorting (n=714): time 0.08685/3.298, allocations: 29.02 MB / 0.99 GB, free: 4.746 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003278/3.299, allocations: 428.7 kB / 0.9904 GB, free: 4.242 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009446/3.308, allocations: 3.462 MB / 0.9938 GB, free: 1.09 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00147/3.31, allocations: 136.1 kB / 0.9939 GB, free: 0.957 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.3186/3.628, allocations: 4.082 MB / 0.9979 GB, free: 84.36 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00349/3.632, allocations: 2.379 MB / 1 GB, free: 82.83 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/3.633, allocations: 135.3 kB / 1 GB, free: 82.83 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001021/3.634, allocations: 0.6108 MB / 1.001 GB, free: 82.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01141/3.646, allocations: 4.386 MB / 1.005 GB, free: 82.49 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0126/3.658, allocations: 6.063 MB / 1.011 GB, free: 80.73 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01262/3.671, allocations: 5.461 MB / 1.016 GB, free: 80.59 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.449e-05/3.671, allocations: 12.78 kB / 1.016 GB, free: 80.59 MB / 474.8 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.03475/3.706, allocations: 13.33 MB / 1.03 GB, free: 80.02 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/3.706, allocations: 53.42 kB / 1.03 GB, free: 79.99 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.34e-05/3.706, allocations: 48.72 kB / 1.03 GB, free: 79.99 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01144/3.718, allocations: 3.848 MB / 1.033 GB, free: 79.88 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008054/3.726, allocations: 1.304 MB / 1.035 GB, free: 79.88 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02205/3.748, allocations: 16.6 MB / 1.051 GB, free: 72.01 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007238/3.755, allocations: 374.2 kB / 1.051 GB, free: 72 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/3.757, allocations: 301.5 kB / 1.051 GB, free: 72 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 202 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (685): * Single equations (assignments): 643 * Array equations: 0 * Algorithm blocks: 1 * 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%) 4,(1,100.0%) 13} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.003346/3.761, allocations: 496.5 kB / 1.052 GB, free: 71.87 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002353/3.763, allocations: 0.5441 MB / 1.052 GB, free: 71.58 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0356/3.799, allocations: 13.32 MB / 1.066 GB, free: 70.91 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002284/3.799, allocations: 159.8 kB / 1.066 GB, free: 70.91 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.354e-05/3.799, allocations: 7.5 kB / 1.066 GB, free: 70.91 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001472/3.799, allocations: 29.72 kB / 1.066 GB, free: 70.91 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06654/3.866, allocations: 26.76 MB / 1.092 GB, free: 59.32 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.842e-05/3.866, allocations: 0.9375 kB / 1.092 GB, free: 59.32 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006328/3.872, allocations: 0.8764 MB / 1.093 GB, free: 59.29 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01202/3.884, allocations: 3.938 MB / 1.097 GB, free: 58.12 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00164/3.886, allocations: 165.7 kB / 1.097 GB, free: 58.02 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0269/3.913, allocations: 20.77 MB / 1.117 GB, free: 42.66 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.251e-06/3.913, allocations: 0 / 1.117 GB, free: 42.66 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04398/3.957, allocations: 19.74 MB / 1.136 GB, free: 25.02 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005589/3.963, allocations: 1.641 MB / 1.138 GB, free: 23.53 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00286/3.965, allocations: 123.6 kB / 1.138 GB, free: 23.41 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00575/3.971, allocations: 292.8 kB / 1.138 GB, free: 23.2 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002286/3.974, allocations: 0.5109 MB / 1.139 GB, free: 22.86 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001644/3.975, allocations: 196.8 kB / 1.139 GB, free: 22.69 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007/3.982, allocations: 2.631 MB / 1.142 GB, free: 20.3 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.628e-06/3.982, allocations: 0 / 1.142 GB, free: 20.3 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01154/3.994, allocations: 2.03 MB / 1.143 GB, free: 18.29 MB / 474.8 MB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (476): * Single equations (assignments): 432 * 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%) 3,(1,100.0%) 8,(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.003438/3.997, allocations: 0.9419 MB / 1.144 GB, free: 17.65 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02608/4.024, allocations: 11.54 MB / 1.156 GB, free: 7.16 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.402e-06/4.024, allocations: 0 / 1.156 GB, free: 7.16 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.3171/4.341, allocations: 6.555 MB / 1.162 GB, free: 83.95 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008638/4.349, allocations: 1.188 MB / 1.163 GB, free: 83.93 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05645/4.406, allocations: 19.54 MB / 1.182 GB, free: 80.83 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01585/4.422, allocations: 6.974 MB / 1.189 GB, free: 79.85 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003174/4.425, allocations: 451.4 kB / 1.19 GB, free: 79.84 MB / 474.8 MB Notification: Performance of SimCode: time 2.408e-06/4.425, allocations: 0 / 1.19 GB, free: 79.84 MB / 474.8 MB Notification: Performance of Templates: time 2.793/7.218, allocations: 0.9585 GB / 2.148 GB, free: 45.68 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:578: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.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:578: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.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorInitialize.cpp:2973:43: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorInitialize.cpp:2976:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp305 = 1.797693134862316e+308; ^ In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:33: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.cpp:534:45: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.cpp:537:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp7 = 1.797693134862316e+308; ^ 4 warnings and 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o] Error 1