Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaE.phi|loadInertiaE.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.578e-05/3.596e-05, allocations: 2.438 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08005/0.08011, allocations: 44.5 MB / 299.9 MB, free: 6.609 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4338/0.514, allocations: 156.9 MB / 456.8 MB, free: 7.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.5143, allocations: 99.19 kB / 456.9 MB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.871/3.385, allocations: 0.5736 GB / 1.02 GB, free: 37.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.913e-06/3.386, allocations: 3.281 kB / 1.02 GB, free: 37.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001457/3.387, allocations: 426.4 kB / 1.02 GB, free: 37.68 MB / 458.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.07168/3.459, allocations: 16.99 MB / 1.037 GB, free: 32.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/3.459, allocations: 15.84 kB / 1.037 GB, free: 32.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06244/3.521, allocations: 8.47 MB / 1.045 GB, free: 31.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04523/3.566, allocations: 14.54 MB / 1.059 GB, free: 29.83 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002071/3.569, allocations: 1.34 MB / 1.061 GB, free: 29.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008341/3.577, allocations: 1.744 MB / 1.062 GB, free: 29.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09022/3.667, allocations: 30.14 MB / 1.092 GB, free: 25.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007843/3.668, allocations: 28.66 kB / 1.092 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00721/3.675, allocations: 0.7508 MB / 1.092 GB, free: 25.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001624/3.677, allocations: 1.194 MB / 1.094 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07345/3.75, allocations: 26.91 MB / 1.12 GB, free: 4.941 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6305/4.381, allocations: 98.72 MB / 1.216 GB, free: 31.75 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04603/4.427, allocations: 35.22 MB / 1.251 GB, free: 30.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02663/4.454, allocations: 12.76 MB / 1.263 GB, free: 25.37 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09763/4.551, allocations: 39.29 MB / 1.302 GB, free: 6.508 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/4.552, allocations: 155.5 kB / 1.302 GB, free: 6.391 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1269): time 1.912e-05/4.552, allocations: 0 / 1.302 GB, free: 6.391 MB / 490.7 MB Notification: Performance of matching and sorting (n=1277): time 0.5655/5.117, allocations: 45.77 MB / 1.346 GB, free: 77.43 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/5.117, allocations: 188 kB / 1.347 GB, free: 77.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01323/5.131, allocations: 4.968 MB / 1.351 GB, free: 76.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002511/5.133, allocations: 202.1 kB / 1.352 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004514/5.138, allocations: 6.281 MB / 1.358 GB, free: 74.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.006052/5.144, allocations: 4.187 MB / 1.362 GB, free: 71.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002768/5.147, allocations: 215 kB / 1.362 GB, free: 71.32 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00147/5.148, allocations: 0.8049 MB / 1.363 GB, free: 70.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01792/5.166, allocations: 8.157 MB / 1.371 GB, free: 70.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02108/5.187, allocations: 10.23 MB / 1.381 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02208/5.209, allocations: 9.777 MB / 1.39 GB, free: 68.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/5.209, allocations: 15.83 kB / 1.39 GB, free: 68.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07593/5.285, allocations: 24.38 MB / 1.414 GB, free: 63.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/5.286, allocations: 31.73 kB / 1.414 GB, free: 63.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/5.286, allocations: 54.75 kB / 1.414 GB, free: 63.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03834/5.324, allocations: 8.948 MB / 1.423 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01451/5.339, allocations: 1.871 MB / 1.425 GB, free: 60.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04592/5.385, allocations: 30.37 MB / 1.454 GB, free: 40.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/5.396, allocations: 0.5531 MB / 1.455 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003488/5.4, allocations: 465.2 kB / 1.455 GB, free: 40.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * Number of states: 0 () * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 918 * 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%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.00592/5.405, allocations: 0.6802 MB / 1.456 GB, free: 40.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004421/5.41, allocations: 0.8528 MB / 1.457 GB, free: 39.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1075/5.517, allocations: 25.32 MB / 1.482 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04558/5.563, allocations: 20.04 MB / 1.501 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.527e-05/5.563, allocations: 12 kB / 1.501 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002179/5.563, allocations: 53.77 kB / 1.501 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4819/6.045, allocations: 49.08 MB / 1.549 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001709/6.045, allocations: 3 kB / 1.549 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009593/6.055, allocations: 1.35 MB / 1.551 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02744/6.083, allocations: 9.068 MB / 1.559 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002976/6.086, allocations: 267.4 kB / 1.56 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0538/6.139, allocations: 36.49 MB / 1.595 GB, free: 58.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.76e-06/6.139, allocations: 3.781 kB / 1.595 GB, free: 58.65 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08731/6.227, allocations: 37.71 MB / 1.632 GB, free: 41.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009776/6.237, allocations: 2.814 MB / 1.635 GB, free: 40.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004558/6.241, allocations: 197.4 kB / 1.635 GB, free: 40.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00989/6.251, allocations: 0.5039 MB / 1.636 GB, free: 40.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004162/6.255, allocations: 0.9657 MB / 1.637 GB, free: 40.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002935/6.258, allocations: 343.7 kB / 1.637 GB, free: 40.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009872/6.268, allocations: 3.78 MB / 1.641 GB, free: 38.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.296e-06/6.268, allocations: 2.344 kB / 1.641 GB, free: 38.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01826/6.287, allocations: 3.245 MB / 1.644 GB, free: 35.22 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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) * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (716): * Single equations (assignments): 650 * 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%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * 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.003898/6.291, allocations: 0.8759 MB / 1.645 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04684/6.337, allocations: 20.87 MB / 1.665 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/6.337, allocations: 0 / 1.665 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02916/6.367, allocations: 12.04 MB / 1.677 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0139/6.381, allocations: 1.971 MB / 1.679 GB, free: 3.676 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4525/6.833, allocations: 33.84 MB / 1.712 GB, free: 82.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02794/6.861, allocations: 11.56 MB / 1.723 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005518/6.867, allocations: 0.6286 MB / 1.724 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of SimCode: time 2.816e-06/6.867, allocations: 2.625 kB / 1.724 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of Templates: time 5.473/12.34, allocations: 1.761 GB / 3.484 GB, free: 82.85 MB / 0.5417 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.IMS_StartCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_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.2_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))); ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o] Error 1