Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 1.761/1.761, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08108/0.08145, allocations: 44.51 MB / 308.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5036, allocations: 147.3 MB / 455.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.504, allocations: 106.4 kB / 455.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.132/2.636, allocations: 458.9 MB / 0.8933 GB, free: 32.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.829e-06/2.636, allocations: 0 / 0.8933 GB, free: 32.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009502/2.637, allocations: 333.1 kB / 0.8937 GB, free: 32.86 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: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.05478/2.692, allocations: 14.07 MB / 0.9074 GB, free: 28.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/2.692, allocations: 7.469 kB / 0.9074 GB, free: 28.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04593/2.738, allocations: 6.505 MB / 0.9138 GB, free: 27.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03287/2.771, allocations: 11.56 MB / 0.925 GB, free: 26.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001395/2.772, allocations: 1.048 MB / 0.9261 GB, free: 26.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005838/2.778, allocations: 1.364 MB / 0.9274 GB, free: 26.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06684/2.845, allocations: 23.66 MB / 0.9505 GB, free: 24.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006179/2.846, allocations: 28.09 kB / 0.9505 GB, free: 24.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005097/2.851, allocations: 0.5895 MB / 0.9511 GB, free: 24.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001173/2.852, allocations: 0.9262 MB / 0.952 GB, free: 24.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05425/2.906, allocations: 21.38 MB / 0.9729 GB, free: 18.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.497/3.403, allocations: 75.82 MB / 1.047 GB, free: 28.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03587/3.439, allocations: 28.44 MB / 1.075 GB, free: 28.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06621/3.506, allocations: 29.21 MB / 1.103 GB, free: 27.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/3.506, allocations: 116 kB / 1.103 GB, free: 27.68 MB / 474.7 MB Notification: Performance of pre-optimization done (n=944): time 1.514e-05/3.506, allocations: 0 / 1.103 GB, free: 27.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=952): time 0.2642/3.77, allocations: 67.58 MB / 1.169 GB, free: 9.996 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/3.77, allocations: 161.6 kB / 1.17 GB, free: 9.891 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008697/3.779, allocations: 4.13 MB / 1.174 GB, free: 8.367 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001756/3.781, allocations: 157.5 kB / 1.174 GB, free: 8.234 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003922/3.785, allocations: 5.049 MB / 1.179 GB, free: 4.125 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005345/3.79, allocations: 3.138 MB / 1.182 GB, free: 1.289 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/3.791, allocations: 168 kB / 1.182 GB, free: 1.125 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001047/3.792, allocations: 0.6946 MB / 1.183 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04659/3.839, allocations: 7.891 MB / 1.19 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01821/3.857, allocations: 7.985 MB / 1.198 GB, free: 8.316 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01832/3.876, allocations: 7.395 MB / 1.205 GB, free: 1.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.746e-05/3.876, allocations: 23.02 kB / 1.205 GB, free: 1.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.3676/4.243, allocations: 18.63 MB / 1.223 GB, free: 72.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.061e-05/4.243, allocations: 25.41 kB / 1.223 GB, free: 72.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/4.244, allocations: 51.38 kB / 1.224 GB, free: 72.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01728/4.261, allocations: 5.914 MB / 1.229 GB, free: 71.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008777/4.27, allocations: 1.535 MB / 1.231 GB, free: 71.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02934/4.299, allocations: 20.11 MB / 1.25 GB, free: 64.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007983/4.307, allocations: 429.7 kB / 1.251 GB, free: 64.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002399/4.309, allocations: 382.2 kB / 1.251 GB, free: 64.58 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,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 initialization (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01318/4.323, allocations: 5.2 MB / 1.256 GB, free: 64.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002117/4.325, allocations: 0.6592 MB / 1.257 GB, free: 64.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04399/4.369, allocations: 18.3 MB / 1.275 GB, free: 63.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03203/4.401, allocations: 14.38 MB / 1.289 GB, free: 59.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.151e-05/4.401, allocations: 5.844 kB / 1.289 GB, free: 59.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000169/4.401, allocations: 41.58 kB / 1.289 GB, free: 59.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08281/4.484, allocations: 35.84 MB / 1.324 GB, free: 43.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001184/4.484, allocations: 3.938 kB / 1.324 GB, free: 43.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006763/4.491, allocations: 1.067 MB / 1.325 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/4.511, allocations: 5.986 MB / 1.331 GB, free: 41.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002114/4.513, allocations: 215.6 kB / 1.331 GB, free: 41.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03443/4.547, allocations: 24.46 MB / 1.355 GB, free: 22.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.348e-06/4.547, allocations: 7.562 kB / 1.355 GB, free: 22.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3917/4.939, allocations: 28.27 MB / 1.382 GB, free: 65.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006958/4.946, allocations: 2.127 MB / 1.385 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00313/4.949, allocations: 149.4 kB / 1.385 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007009/4.956, allocations: 369.1 kB / 1.385 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003105/4.959, allocations: 0.7134 MB / 1.386 GB, free: 65.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002043/4.962, allocations: 258.8 kB / 1.386 GB, free: 65.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008281/4.97, allocations: 3.147 MB / 1.389 GB, free: 65.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.916e-06/4.97, allocations: 0 / 1.389 GB, free: 65.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01429/4.984, allocations: 2.506 MB / 1.392 GB, free: 65.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.002908/4.987, allocations: 0.6254 MB / 1.392 GB, free: 65.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03673/5.024, allocations: 15.73 MB / 1.407 GB, free: 64.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/5.024, allocations: 2.344 kB / 1.407 GB, free: 64.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02129/5.045, allocations: 8.885 MB / 1.416 GB, free: 63.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/5.055, allocations: 1.491 MB / 1.418 GB, free: 63.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07591/5.131, allocations: 34.91 MB / 1.452 GB, free: 51.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02006/5.151, allocations: 9.037 MB / 1.461 GB, free: 50.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003423/5.155, allocations: 0.5103 MB / 1.461 GB, free: 50.21 MB / 490.7 MB Notification: Performance of SimCode: time 1.895e-06/5.155, allocations: 0 / 1.461 GB, free: 50.21 MB / 490.7 MB Notification: Performance of Templates: time 3.449/8.604, allocations: 1.1 GB / 2.561 GB, free: 85.25 MB / 0.5261 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile b'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@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_DOLCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp330 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:508:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp330 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1\n'