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.SynchronousMachines.SMPM_OpenCircuit.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.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002785/0.002785, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.888/3.888, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001988/0.001988, allocations: 90.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006433/0.0006438, allocations: 8 kB / 327 MB, free: 15.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.231, allocations: 47.59 MB / 374.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.5149/0.7461, allocations: 24.11 MB / 398.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.04481/0.791, allocations: 8.302 MB / 407 MB, free: 5.023 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01207/0.8031, allocations: 153 kB / 407.1 MB, free: 4.992 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01374/0.817, allocations: 1.574 MB / 408.7 MB, free: 4.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02715/0.8442, allocations: 3.071 MB / 411.8 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0126/0.8568, allocations: 1.301 MB / 413.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.03356/0.8904, allocations: 7.277 MB / 420.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04845/0.939, allocations: 9.882 MB / 430.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01384/0.9529, allocations: 2.897 MB / 433.1 MB, free: 2.863 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0221/0.9751, allocations: 3.245 MB / 436.4 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0126/0.9878, allocations: 472 kB / 436.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01688/1.005, allocations: 0.7457 MB / 437.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006084/1.011, allocations: 1.491 MB / 439.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008037/1.019, allocations: 1.588 MB / 440.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03589/1.055, allocations: 13.02 MB / 453.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/1.055, allocations: 0 / 453.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.697e-06/1.055, allocations: 0 / 453.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006876/1.056, allocations: 4 kB / 453.7 MB, free: 14.25 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.05677/1.113, allocations: 8.199 MB / 461.9 MB, free: 5.957 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.86e-05/1.113, allocations: 8.031 kB / 461.9 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1151/1.228, allocations: 5.18 MB / 467.1 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04678/1.275, allocations: 4.623 MB / 471.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001413/1.276, allocations: 0.5299 MB / 472.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01001/1.286, allocations: 0.6991 MB / 472.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08175/1.368, allocations: 11.2 MB / 484.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007633/1.369, allocations: 15.83 kB / 484.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004859/1.374, allocations: 304 kB / 484.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001269/1.375, allocations: 443 kB / 484.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05779/1.433, allocations: 10.75 MB / 495.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1912/1.624, allocations: 38.04 MB / 0.5211 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.7005/2.325, allocations: 28.06 MB / 0.5485 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05124/2.376, allocations: 7.9 MB / 0.5563 GB, free: 89.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/2.376, allocations: 61.55 kB / 0.5563 GB, free: 88.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 1.138e-05/2.377, allocations: 0 / 0.5563 GB, free: 88.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=238): time 0.06005/2.437, allocations: 10.4 MB / 0.5665 GB, free: 84.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004345/2.441, allocations: 1.926 MB / 0.5684 GB, free: 82.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/2.456, allocations: 3.689 MB / 0.572 GB, free: 81.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007763/2.457, allocations: 68.39 kB / 0.572 GB, free: 81.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004484/2.462, allocations: 3.425 MB / 0.5754 GB, free: 78.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002028/2.464, allocations: 0.838 MB / 0.5762 GB, free: 77.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007851/2.465, allocations: 103.7 kB / 0.5763 GB, free: 77.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000612/2.465, allocations: 0.5017 MB / 0.5768 GB, free: 77.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007917/2.473, allocations: 1.89 MB / 0.5786 GB, free: 76.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01208/2.485, allocations: 4.436 MB / 0.583 GB, free: 72.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/2.496, allocations: 2.85 MB / 0.5857 GB, free: 71.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000158/2.496, allocations: 27.62 kB / 0.5858 GB, free: 71.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.02987/2.526, allocations: 6.854 MB / 0.5925 GB, free: 68.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001521/2.527, allocations: 43.09 kB / 0.5925 GB, free: 68.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00027/2.527, allocations: 90.56 kB / 0.5926 GB, free: 68.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005216/2.532, allocations: 0.7509 MB / 0.5933 GB, free: 68.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01131/2.543, allocations: 1.151 MB / 0.5944 GB, free: 68.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02017/2.564, allocations: 5.38 MB / 0.5997 GB, free: 63.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01445/2.578, allocations: 315.1 kB / 0.6 GB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001937/2.58, allocations: 280 kB / 0.6003 GB, free: 63.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 403 * 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 (603): * Single equations (assignments): 600 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01255/2.593, allocations: 2.529 MB / 0.6027 GB, free: 60.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00224/2.595, allocations: 383.3 kB / 0.6031 GB, free: 60.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02936/2.625, allocations: 4.314 MB / 0.6073 GB, free: 56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001255/2.625, allocations: 24 kB / 0.6073 GB, free: 55.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.217e-05/2.625, allocations: 8 kB / 0.6073 GB, free: 55.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001638/2.625, allocations: 15.89 kB / 0.6074 GB, free: 55.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.132/2.757, allocations: 14.32 MB / 0.6213 GB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001058/2.757, allocations: 8 kB / 0.6214 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01168/2.769, allocations: 495.2 kB / 0.6218 GB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01134/2.781, allocations: 0.6894 MB / 0.6225 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001364/2.782, allocations: 71.98 kB / 0.6226 GB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04983/2.832, allocations: 7.097 MB / 0.6295 GB, free: 32.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005869/2.838, allocations: 1.87 MB / 0.6313 GB, free: 30.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03975/2.878, allocations: 8.121 MB / 0.6393 GB, free: 22.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005179/2.883, allocations: 0.7927 MB / 0.64 GB, free: 21.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003568/2.887, allocations: 67.94 kB / 0.6401 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009827/2.897, allocations: 167.9 kB / 0.6403 GB, free: 21.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001923/2.899, allocations: 229.4 kB / 0.6405 GB, free: 20.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005558/2.899, allocations: 99.98 kB / 0.6406 GB, free: 20.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01316/2.912, allocations: 2.392 MB / 0.6429 GB, free: 18.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.004e-06/2.912, allocations: 3.75 kB / 0.6429 GB, free: 18.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.02171/2.934, allocations: 1.294 MB / 0.6442 GB, free: 17.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 1 ($STATESET1.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 (249): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/2.936, allocations: 221.8 kB / 0.6444 GB, free: 16.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02814/2.964, allocations: 5.175 MB / 0.6494 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-05/2.964, allocations: 1.625 kB / 0.6494 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01382/2.978, allocations: 2.432 MB / 0.6518 GB, free: 9.223 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01302/2.991, allocations: 0.9146 MB / 0.6527 GB, free: 8.324 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1133/3.104, allocations: 14.65 MB / 0.667 GB, free: 9.461 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03206/3.137, allocations: 4.503 MB / 0.6714 GB, free: 4.914 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007382/3.144, allocations: 331.4 kB / 0.6717 GB, free: 4.59 MB / 426.7 MB Notification: Performance of SimCode: time 3.487e-06/3.144, allocations: 3.938 kB / 0.6717 GB, free: 4.586 MB / 426.7 MB Notification: Performance of Templates: time 1.242/4.386, allocations: 189.1 MB / 0.8564 GB, free: 19 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:99:42: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp62 = 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.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:99:85: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp62 = 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.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1\n'