Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.825/1.825, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004936/0.0004938, allocations: 8 kB / 264.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1502, allocations: 44.5 MB / 309 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5905/0.7407, allocations: 157 MB / 466 MB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/0.7411, allocations: 113.3 kB / 466.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.153/3.894, allocations: 0.5738 GB / 1.029 GB, free: 13.19 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.118e-06/3.894, allocations: 0 / 1.029 GB, free: 13.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.002602/3.897, allocations: 426.6 kB / 1.029 GB, free: 13.15 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.09897/3.996, allocations: 18.05 MB / 1.047 GB, free: 7.582 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/3.996, allocations: 10.09 kB / 1.047 GB, free: 7.582 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06907/4.065, allocations: 8.519 MB / 1.055 GB, free: 6.551 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07567/4.14, allocations: 14.59 MB / 1.07 GB, free: 4.809 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003384/4.144, allocations: 1.34 MB / 1.071 GB, free: 4.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01393/4.158, allocations: 1.745 MB / 1.073 GB, free: 4.758 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1466/4.304, allocations: 30.87 MB / 1.103 GB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001349/4.306, allocations: 21.84 kB / 1.103 GB, free: 2.523 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008967/4.315, allocations: 0.7556 MB / 1.104 GB, free: 2.523 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001937/4.317, allocations: 1.193 MB / 1.105 GB, free: 2.477 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09429/4.411, allocations: 27.91 MB / 1.132 GB, free: 0 / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8597/5.271, allocations: 98 MB / 1.228 GB, free: 32.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06461/5.336, allocations: 35.55 MB / 1.262 GB, free: 31.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1232/5.459, allocations: 39.42 MB / 1.301 GB, free: 30.62 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/5.459, allocations: 150.4 kB / 1.301 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1283): time 1.991e-05/5.459, allocations: 2.531 kB / 1.301 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1291): time 1.038/6.497, allocations: 106 MB / 1.405 GB, free: 66.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001581/6.497, allocations: 192.1 kB / 1.405 GB, free: 66.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01897/6.516, allocations: 5.674 MB / 1.41 GB, free: 66.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.003472/6.52, allocations: 201.5 kB / 1.41 GB, free: 66.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006268/6.526, allocations: 6.255 MB / 1.417 GB, free: 62.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00921/6.535, allocations: 4.23 MB / 1.421 GB, free: 60.11 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003732/6.539, allocations: 216.8 kB / 1.421 GB, free: 60.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001853/6.541, allocations: 0.8127 MB / 1.422 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02516/6.566, allocations: 8.349 MB / 1.43 GB, free: 59.74 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02931/6.595, allocations: 10.52 MB / 1.44 GB, free: 57.67 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02824/6.624, allocations: 9.946 MB / 1.45 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/6.624, allocations: 19.84 kB / 1.45 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.07465/6.699, allocations: 24.95 MB / 1.474 GB, free: 55.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/6.699, allocations: 29.59 kB / 1.474 GB, free: 55.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/6.699, allocations: 61.55 kB / 1.474 GB, free: 55.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03094/6.73, allocations: 9.023 MB / 1.483 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01578/6.746, allocations: 1.89 MB / 1.485 GB, free: 53.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08234/6.828, allocations: 30.64 MB / 1.515 GB, free: 32.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02065/6.849, allocations: 0.5538 MB / 1.515 GB, free: 32.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005964/6.855, allocations: 467.1 kB / 1.516 GB, free: 32.65 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.03401/6.889, allocations: 6.75 MB / 1.522 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007424/6.896, allocations: 0.8589 MB / 1.523 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1266/7.023, allocations: 25.72 MB / 1.548 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.5544/7.577, allocations: 20.81 MB / 1.569 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.065e-05/7.578, allocations: 9.688 kB / 1.569 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003056/7.578, allocations: 59.91 kB / 1.569 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1535/7.731, allocations: 48.95 MB / 1.617 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002375/7.732, allocations: 3.75 kB / 1.617 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01272/7.744, allocations: 1.381 MB / 1.618 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03207/7.777, allocations: 9.136 MB / 1.627 GB, free: 73.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0039/7.781, allocations: 270.2 kB / 1.627 GB, free: 73.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06565/7.846, allocations: 36.9 MB / 1.663 GB, free: 55.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/7.846, allocations: 3.406 kB / 1.663 GB, free: 55.69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.107/7.953, allocations: 37.9 MB / 1.7 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01152/7.965, allocations: 2.83 MB / 1.703 GB, free: 37.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005892/7.971, allocations: 188.9 kB / 1.703 GB, free: 37.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01258/7.983, allocations: 0.5146 MB / 1.704 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005152/7.989, allocations: 0.9748 MB / 1.705 GB, free: 37.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003539/7.992, allocations: 346.3 kB / 1.705 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01074/8.003, allocations: 3.832 MB / 1.709 GB, free: 35.84 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.11e-07/8.003, allocations: 0 / 1.709 GB, free: 35.84 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02053/8.024, allocations: 3.257 MB / 1.712 GB, free: 35.5 MB / 0.5105 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.004626/8.028, allocations: 0.7573 MB / 1.713 GB, free: 35.24 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06063/8.089, allocations: 21.52 MB / 1.734 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/8.089, allocations: 2.031 kB / 1.734 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03945/8.128, allocations: 12.43 MB / 1.746 GB, free: 9.516 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01978/8.148, allocations: 1.966 MB / 1.748 GB, free: 8.035 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5505/8.699, allocations: 45.52 MB / 1.792 GB, free: 64.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02792/8.727, allocations: 11.58 MB / 1.803 GB, free: 62.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005545/8.732, allocations: 0.6327 MB / 1.804 GB, free: 62.97 MB / 0.5105 GB Notification: Performance of SimCode: time 1.833e-06/8.732, allocations: 0 / 1.804 GB, free: 62.97 MB / 0.5105 GB Notification: Performance of Templates: time 6.661/15.39, allocations: 1.763 GB / 3.567 GB, free: 135.8 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=5 -DSUNDIALS_MINOR_VERSION=4 -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\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'