Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.31e-05, allocations: 4.531 kB / 292.2 MB, free: 8.793 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09112, allocations: 50.42 MB / 342.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.5538, allocations: 153.5 MB / 496.1 MB, free: 5.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.5542, allocations: 99.8 kB / 496.2 MB, free: 5.613 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.302/2.856, allocations: 0.4891 GB / 0.9736 GB, free: 42.63 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.568e-06/2.856, allocations: 0 / 0.9736 GB, free: 42.63 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001163/2.857, allocations: 348.5 kB / 0.974 GB, free: 42.58 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: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.06185/2.919, allocations: 14.79 MB / 0.9884 GB, free: 37.85 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/2.919, allocations: 11.19 kB / 0.9884 GB, free: 37.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1002/3.019, allocations: 7.386 MB / 0.9956 GB, free: 36.97 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03682/3.056, allocations: 12.51 MB / 1.008 GB, free: 31.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001332/3.058, allocations: 1.121 MB / 1.009 GB, free: 30.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006649/3.064, allocations: 1.467 MB / 1.01 GB, free: 29.02 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0739/3.138, allocations: 24.67 MB / 1.034 GB, free: 7.051 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000756/3.139, allocations: 19.81 kB / 1.034 GB, free: 7.031 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006038/3.145, allocations: 0.6324 MB / 1.035 GB, free: 6.402 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00172/3.147, allocations: 1.091 MB / 1.036 GB, free: 5.441 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4053/3.552, allocations: 22.19 MB / 1.058 GB, free: 44.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/3.722, allocations: 80.6 MB / 1.137 GB, free: 17.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04391/3.765, allocations: 38.77 MB / 1.174 GB, free: 1.035 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02095/3.786, allocations: 7.542 MB / 1.182 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0457/3.832, allocations: 17.33 MB / 1.199 GB, free: 7.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01213/3.844, allocations: 5.154 MB / 1.204 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=717): time 1.635e-05/3.844, allocations: 3.688 kB / 1.204 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of matching and sorting (n=725): time 0.07275/3.917, allocations: 25.36 MB / 1.229 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003408/3.918, allocations: 478.4 kB / 1.229 GB, free: 15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01584/3.933, allocations: 5.582 MB / 1.234 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001397/3.935, allocations: 145.7 kB / 1.235 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.008725/3.944, allocations: 6.181 MB / 1.241 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00409/3.948, allocations: 2.41 MB / 1.243 GB, free: 2.184 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001928/3.95, allocations: 180 kB / 1.243 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001112/3.951, allocations: 0.671 MB / 1.244 GB, free: 1.43 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4294/4.38, allocations: 5.416 MB / 1.249 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01372/4.394, allocations: 7.445 MB / 1.256 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01406/4.408, allocations: 6.131 MB / 1.262 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/4.408, allocations: 26.31 kB / 1.262 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.03789/4.446, allocations: 14.62 MB / 1.277 GB, free: 101 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/4.446, allocations: 49.81 kB / 1.277 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/4.447, allocations: 83.84 kB / 1.277 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01037/4.457, allocations: 2.882 MB / 1.28 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/4.467, allocations: 1.803 MB / 1.281 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05183/4.519, allocations: 30.58 MB / 1.311 GB, free: 92.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/4.53, allocations: 0.5829 MB / 1.312 GB, free: 92.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002428/4.532, allocations: 408.4 kB / 1.312 GB, free: 92.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003455/4.536, allocations: 0.6672 MB / 1.313 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00197/4.538, allocations: 0.7052 MB / 1.313 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03382/4.571, allocations: 13.15 MB / 1.326 GB, free: 89.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.14e-05/4.572, allocations: 72.16 kB / 1.326 GB, free: 89.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-05/4.572, allocations: 34.41 kB / 1.326 GB, free: 89.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001581/4.572, allocations: 35.48 kB / 1.326 GB, free: 89.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07273/4.645, allocations: 27.51 MB / 1.353 GB, free: 78.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.486e-05/4.645, allocations: 10.03 kB / 1.353 GB, free: 78.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006807/4.651, allocations: 1.076 MB / 1.354 GB, free: 78.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01058/4.662, allocations: 2.927 MB / 1.357 GB, free: 77.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/4.664, allocations: 165.2 kB / 1.357 GB, free: 77.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04994/4.714, allocations: 33.05 MB / 1.39 GB, free: 51.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.771e-06/4.714, allocations: 11.94 kB / 1.39 GB, free: 51.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04048/4.754, allocations: 20.04 MB / 1.409 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006294/4.761, allocations: 1.805 MB / 1.411 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003021/4.764, allocations: 143.5 kB / 1.411 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006891/4.771, allocations: 448.9 kB / 1.412 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002588/4.773, allocations: 0.646 MB / 1.412 GB, free: 30.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001474/4.775, allocations: 208.7 kB / 1.412 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01073/4.785, allocations: 4.208 MB / 1.417 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.255e-06/4.785, allocations: 4 kB / 1.417 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01595/4.801, allocations: 2.922 MB / 1.419 GB, free: 23.77 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002337/4.804, allocations: 0.776 MB / 1.42 GB, free: 23.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02679/4.831, allocations: 12.72 MB / 1.433 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/4.831, allocations: 0 / 1.433 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3689/5.2, allocations: 7.75 MB / 1.44 GB, free: 95.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/5.211, allocations: 1.749 MB / 1.442 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07124/5.282, allocations: 24.04 MB / 1.465 GB, free: 91.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02327/5.306, allocations: 9.84 MB / 1.475 GB, free: 90.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003786/5.309, allocations: 0.5851 MB / 1.475 GB, free: 90.5 MB / 0.5261 GB Notification: Performance of SimCode: time 2.03e-06/5.309, allocations: 0 / 1.475 GB, free: 90.5 MB / 0.5261 GB Notification: Performance of Templates: time 2.49/7.799, allocations: 0.7812 GB / 2.257 GB, free: 133.5 MB / 0.573 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp222 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp222 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1