Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.007863/0.007872, allocations: 189 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.176/4.176, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 94.8 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006081/0.0006084, allocations: 8 kB / 327 MB, free: 15.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1986, allocations: 47.59 MB / 374.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.482/0.6807, allocations: 20.02 MB / 394.6 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03253/0.7133, allocations: 7.278 MB / 401.9 MB, free: 8.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01765/0.731, allocations: 146.7 kB / 402 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02191/0.7531, allocations: 1.497 MB / 403.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03991/0.793, allocations: 2.577 MB / 406.1 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02039/0.8135, allocations: 1.223 MB / 407.3 MB, free: 5.484 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.07025/0.8838, allocations: 10.18 MB / 417.5 MB, free: 280 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1516/1.036, allocations: 19.16 MB / 436.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02199/1.058, allocations: 4.027 MB / 440.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0326/1.09, allocations: 4.374 MB / 445.1 MB, free: 6.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006013/1.096, allocations: 0.6602 MB / 445.7 MB, free: 6.109 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0227/1.119, allocations: 0.9839 MB / 446.7 MB, free: 5.125 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01386/1.133, allocations: 2.083 MB / 448.8 MB, free: 3.035 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009396/1.143, allocations: 2.153 MB / 450.9 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04885/1.192, allocations: 19.54 MB / 470.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.192, allocations: 0 / 470.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.633e-06/1.192, allocations: 4 kB / 470.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007952/1.193, allocations: 0 / 470.5 MB, free: 13.28 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.07819/1.271, allocations: 11.4 MB / 481.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.628e-05/1.271, allocations: 11.97 kB / 481.9 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1591/1.43, allocations: 7.155 MB / 489.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03651/1.467, allocations: 6.412 MB / 495.5 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002179/1.469, allocations: 0.7305 MB / 496.2 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008938/1.478, allocations: 0.9608 MB / 497.2 MB, free: 2.402 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.102/1.58, allocations: 16.44 MB / 0.5016 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00114/1.581, allocations: 11.91 kB / 0.5016 GB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01092/1.592, allocations: 407.9 kB / 0.502 GB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004242/1.597, allocations: 0.5869 MB / 0.5025 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1313/1.728, allocations: 15.72 MB / 0.5179 GB, free: 1.133 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.35/3.078, allocations: 53.93 MB / 0.5706 GB, free: 85.79 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04637/3.125, allocations: 22.67 MB / 0.5927 GB, free: 65.17 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05222/3.177, allocations: 11.81 MB / 0.6042 GB, free: 57.18 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/3.177, allocations: 68.84 kB / 0.6043 GB, free: 57.11 MB / 410.8 MB Notification: Performance of pre-optimization done (n=365): time 1.25e-05/3.177, allocations: 0 / 0.6043 GB, free: 57.11 MB / 410.8 MB Notification: Performance of matching and sorting (n=370): time 0.1094/3.287, allocations: 18.57 MB / 0.6224 GB, free: 41.88 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/3.287, allocations: 94.28 kB / 0.6225 GB, free: 41.77 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01755/3.304, allocations: 4.69 MB / 0.6271 GB, free: 37.05 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001323/3.306, allocations: 81.7 kB / 0.6272 GB, free: 36.96 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005453/3.311, allocations: 4.295 MB / 0.6314 GB, free: 32.64 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003088/3.314, allocations: 1.274 MB / 0.6326 GB, free: 31.38 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001599/3.316, allocations: 120 kB / 0.6327 GB, free: 31.27 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0009026/3.317, allocations: 0.547 MB / 0.6333 GB, free: 30.71 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0123/3.329, allocations: 2.924 MB / 0.6361 GB, free: 27.78 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01539/3.345, allocations: 5.246 MB / 0.6412 GB, free: 21.43 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/3.361, allocations: 4.111 MB / 0.6453 GB, free: 17.31 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/3.361, allocations: 24 kB / 0.6453 GB, free: 17.29 MB / 410.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.04475/3.406, allocations: 9.412 MB / 0.6545 GB, free: 7.844 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000129/3.406, allocations: 42.66 kB / 0.6545 GB, free: 7.805 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/3.407, allocations: 79.98 kB / 0.6546 GB, free: 7.727 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009592/3.416, allocations: 1.384 MB / 0.6559 GB, free: 6.34 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01343/3.43, allocations: 1.334 MB / 0.6572 GB, free: 5.004 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05455/3.484, allocations: 11.95 MB / 0.6689 GB, free: 8.797 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02471/3.509, allocations: 371.4 kB / 0.6693 GB, free: 8.434 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002605/3.512, allocations: 303.9 kB / 0.6695 GB, free: 8.137 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (692): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.03488/3.547, allocations: 3.923 MB / 0.6734 GB, free: 4.199 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007184/3.554, allocations: 446.5 kB / 0.6738 GB, free: 3.758 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06909/3.623, allocations: 6.828 MB / 0.6805 GB, free: 12.88 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04296/3.666, allocations: 5.624 MB / 0.686 GB, free: 7.219 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.559e-05/3.666, allocations: 12 kB / 0.686 GB, free: 7.207 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000149/3.667, allocations: 19.92 kB / 0.686 GB, free: 7.188 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07648/3.743, allocations: 15.46 MB / 0.7011 GB, free: 7.652 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.355e-05/3.743, allocations: 11.89 kB / 0.7011 GB, free: 7.641 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00837/3.752, allocations: 0.6714 MB / 0.7018 GB, free: 6.969 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01006/3.762, allocations: 1.257 MB / 0.703 GB, free: 5.703 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00142/3.763, allocations: 91.95 kB / 0.7031 GB, free: 5.613 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5514/4.315, allocations: 10.85 MB / 0.7137 GB, free: 146.5 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.068e-05/4.315, allocations: 10.03 kB / 0.7137 GB, free: 146.5 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05089/4.366, allocations: 10.52 MB / 0.724 GB, free: 142.6 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006453/4.372, allocations: 1.036 MB / 0.725 GB, free: 142.2 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003103/4.375, allocations: 71.05 kB / 0.725 GB, free: 142.2 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008768/4.384, allocations: 220.3 kB / 0.7252 GB, free: 142.1 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002649/4.387, allocations: 273.4 kB / 0.7255 GB, free: 142.1 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001555/4.389, allocations: 115.5 kB / 0.7256 GB, free: 142 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.0146/4.403, allocations: 3.167 MB / 0.7287 GB, free: 140.9 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.234e-06/4.403, allocations: 3.25 kB / 0.7287 GB, free: 140.9 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01639/4.42, allocations: 1.692 MB / 0.7304 GB, free: 140.7 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003488/4.423, allocations: 0.5068 MB / 0.7309 GB, free: 140.4 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03445/4.458, allocations: 7.569 MB / 0.7383 GB, free: 137.4 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 2.23e-05/4.458, allocations: 3.938 kB / 0.7383 GB, free: 137.4 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01862/4.477, allocations: 3.619 MB / 0.7418 GB, free: 135.8 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01324/4.49, allocations: 0.9244 MB / 0.7427 GB, free: 135.5 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0854/4.576, allocations: 20.87 MB / 0.7631 GB, free: 119.3 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02299/4.599, allocations: 6.532 MB / 0.7695 GB, free: 113.4 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005136/4.604, allocations: 415.3 kB / 0.7699 GB, free: 113 MB / 458.8 MB Notification: Performance of SimCode: time 5.36e-06/4.604, allocations: 0 / 0.7699 GB, free: 113 MB / 458.8 MB Notification: Performance of Templates: time 1.068/5.672, allocations: 215.9 MB / 0.9807 GB, free: 56.44 MB / 458.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:347:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp132 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:347:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp132 = 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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1\n'