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.IMS_Start.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.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.803/1.803, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003802, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08246/0.08287, allocations: 44.5 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4306/0.5135, allocations: 157 MB / 465.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.5138, allocations: 112.5 kB / 465.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.819/3.333, allocations: 0.5738 GB / 1.028 GB, free: 14.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.01e-06/3.333, allocations: 0 / 1.028 GB, free: 14.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001701/3.335, allocations: 429.5 kB / 1.029 GB, free: 14.12 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: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.07883/3.414, allocations: 18.04 MB / 1.047 GB, free: 8.566 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/3.414, allocations: 10.12 kB / 1.047 GB, free: 8.566 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06253/3.476, allocations: 8.519 MB / 1.055 GB, free: 7.535 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04384/3.52, allocations: 14.6 MB / 1.069 GB, free: 5.789 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002004/3.522, allocations: 1.339 MB / 1.07 GB, free: 5.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008086/3.53, allocations: 1.738 MB / 1.072 GB, free: 5.738 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08841/3.619, allocations: 30.72 MB / 1.102 GB, free: 3.508 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007869/3.62, allocations: 24.81 kB / 1.102 GB, free: 3.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007046/3.627, allocations: 0.7605 MB / 1.103 GB, free: 3.496 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001604/3.628, allocations: 1.194 MB / 1.104 GB, free: 3.453 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07382/3.702, allocations: 27.72 MB / 1.131 GB, free: 0 / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6404/4.343, allocations: 97.95 MB / 1.227 GB, free: 32.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05384/4.396, allocations: 35.56 MB / 1.261 GB, free: 32.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09413/4.491, allocations: 39.42 MB / 1.3 GB, free: 30.94 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/4.491, allocations: 150.1 kB / 1.3 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1283): time 1.925e-05/4.491, allocations: 0 / 1.3 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1291): time 0.7634/5.254, allocations: 106 MB / 1.404 GB, free: 67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/5.254, allocations: 192.3 kB / 1.404 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/5.267, allocations: 5.015 MB / 1.409 GB, free: 66.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002567/5.27, allocations: 202 kB / 1.409 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004721/5.274, allocations: 6.259 MB / 1.415 GB, free: 63.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00622/5.281, allocations: 4.229 MB / 1.419 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002812/5.283, allocations: 216.4 kB / 1.419 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001468/5.285, allocations: 0.8136 MB / 1.42 GB, free: 60.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01906/5.304, allocations: 8.351 MB / 1.428 GB, free: 60.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02185/5.326, allocations: 10.48 MB / 1.439 GB, free: 58.17 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02309/5.349, allocations: 9.954 MB / 1.448 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.682e-05/5.349, allocations: 13.72 kB / 1.448 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.0636/5.413, allocations: 24.95 MB / 1.473 GB, free: 56.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.038e-05/5.413, allocations: 27.88 kB / 1.473 GB, free: 56.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/5.413, allocations: 58.42 kB / 1.473 GB, free: 56.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02539/5.438, allocations: 9.03 MB / 1.482 GB, free: 53.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01074/5.449, allocations: 1.879 MB / 1.483 GB, free: 53.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04728/5.497, allocations: 30.63 MB / 1.513 GB, free: 33.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01098/5.508, allocations: 0.5524 MB / 1.514 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003416/5.511, allocations: 469.1 kB / 1.514 GB, free: 33.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * 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.01874/5.53, allocations: 6.751 MB / 1.521 GB, free: 29.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00425/5.534, allocations: 0.8543 MB / 1.522 GB, free: 29.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06678/5.601, allocations: 25.73 MB / 1.547 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4528/6.054, allocations: 20.95 MB / 1.567 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.767e-05/6.054, allocations: 11.25 kB / 1.567 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002335/6.054, allocations: 54.61 kB / 1.567 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1282/6.182, allocations: 48.96 MB / 1.615 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001821/6.183, allocations: 6.5 kB / 1.615 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008733/6.191, allocations: 1.381 MB / 1.617 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02609/6.217, allocations: 9.129 MB / 1.625 GB, free: 57.66 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002973/6.22, allocations: 272.2 kB / 1.626 GB, free: 57.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05297/6.273, allocations: 36.89 MB / 1.662 GB, free: 39.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.747e-06/6.274, allocations: 5.594 kB / 1.662 GB, free: 39.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08869/6.362, allocations: 38.41 MB / 1.699 GB, free: 22.33 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009584/6.372, allocations: 2.833 MB / 1.702 GB, free: 21.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004488/6.376, allocations: 194.4 kB / 1.702 GB, free: 21.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00912/6.386, allocations: 0.518 MB / 1.703 GB, free: 20.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004194/6.39, allocations: 0.9717 MB / 1.704 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00298/6.393, allocations: 345.1 kB / 1.704 GB, free: 20.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009929/6.403, allocations: 3.835 MB / 1.708 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.245e-06/6.403, allocations: 0 / 1.708 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01891/6.422, allocations: 3.252 MB / 1.711 GB, free: 18.92 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * 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%) 1,(1,100.0%) 8,(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.003892/6.426, allocations: 0.761 MB / 1.712 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04894/6.475, allocations: 21.51 MB / 1.733 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/6.475, allocations: 0 / 1.733 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.06771/6.542, allocations: 14.47 MB / 1.747 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01408/6.557, allocations: 1.96 MB / 1.749 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4838/7.04, allocations: 46.02 MB / 1.794 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02818/7.069, allocations: 11.58 MB / 1.805 GB, free: 66.94 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005413/7.074, allocations: 0.63 MB / 1.806 GB, free: 66.94 MB / 0.5105 GB Notification: Performance of SimCode: time 1.803e-06/7.074, allocations: 0 / 1.806 GB, free: 66.94 MB / 0.5105 GB Notification: Performance of Templates: time 5.735/12.81, allocations: 1.763 GB / 3.568 GB, free: 127.7 MB / 0.573 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.IMS_StartCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp405 = 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.IMS_StartFunctions.cpp:588:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp405 = 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.IMS_StartCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o] Error 1\n'