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.00161/0.001609, allocations: 181.1 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.942/1.942, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001116/0.001116, allocations: 96.36 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003895, allocations: 16 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3187, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5024/0.8212, allocations: 149.1 MB / 0.5113 GB, free: 65.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.8216, allocations: 109.2 kB / 0.5114 GB, free: 65.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.033/1.855, allocations: 232.3 MB / 0.7383 GB, free: 63.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.855, allocations: 0 / 0.7383 GB, free: 63.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005745/1.855, allocations: 167.1 kB / 0.7384 GB, free: 63.94 MB / 426.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.03408/1.89, allocations: 7.255 MB / 0.7455 GB, free: 60.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/1.89, allocations: 7.625 kB / 0.7455 GB, free: 60.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03167/1.921, allocations: 3.685 MB / 0.7491 GB, free: 59.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02092/1.942, allocations: 5.967 MB / 0.755 GB, free: 55.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008818/1.943, allocations: 0.5248 MB / 0.7555 GB, free: 54.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003639/1.947, allocations: 0.6871 MB / 0.7561 GB, free: 54.19 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03702/1.984, allocations: 11.44 MB / 0.7673 GB, free: 43.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004401/1.984, allocations: 19.83 kB / 0.7673 GB, free: 43.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002843/1.987, allocations: 296.1 kB / 0.7676 GB, free: 43.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006842/1.988, allocations: 494.5 kB / 0.7681 GB, free: 42.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03175/2.02, allocations: 10.66 MB / 0.7785 GB, free: 31.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4282/2.448, allocations: 38.31 MB / 0.8159 GB, free: 45.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02445/2.473, allocations: 18.47 MB / 0.834 GB, free: 48.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0407/2.513, allocations: 13.71 MB / 0.8473 GB, free: 47.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.523e-05/2.513, allocations: 69.44 kB / 0.8474 GB, free: 47.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=404): time 8.506e-06/2.513, allocations: 1.688 kB / 0.8474 GB, free: 47.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=420): time 0.08326/2.597, allocations: 22.47 MB / 0.8694 GB, free: 43.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002892/2.6, allocations: 1.968 MB / 0.8713 GB, free: 42.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007537/2.607, allocations: 2.968 MB / 0.8742 GB, free: 42.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009521/2.608, allocations: 85.45 kB / 0.8743 GB, free: 42.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/2.611, allocations: 3.011 MB / 0.8772 GB, free: 40.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002093/2.613, allocations: 1.413 MB / 0.8786 GB, free: 39.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006802/2.614, allocations: 108.8 kB / 0.8787 GB, free: 39.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005108/2.614, allocations: 0.5338 MB / 0.8792 GB, free: 39.24 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007/2.621, allocations: 2.902 MB / 0.882 GB, free: 39.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008842/2.63, allocations: 4.9 MB / 0.8868 GB, free: 35.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009537/2.64, allocations: 3.796 MB / 0.8905 GB, free: 33.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-05/2.64, allocations: 18.22 kB / 0.8905 GB, free: 33.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02722/2.667, allocations: 9.237 MB / 0.8996 GB, free: 30.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/2.667, allocations: 35.2 kB / 0.8996 GB, free: 30.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/2.667, allocations: 66.41 kB / 0.8997 GB, free: 30.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01224/2.68, allocations: 2.482 MB / 0.9021 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01056/2.69, allocations: 1.067 MB / 0.9031 GB, free: 29.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/2.706, allocations: 5.414 MB / 0.9084 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009817/2.716, allocations: 325.3 kB / 0.9087 GB, free: 26.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002051/2.718, allocations: 263.8 kB / 0.909 GB, free: 26.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.01143/2.73, allocations: 2.5 MB / 0.9114 GB, free: 25.01 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002669/2.733, allocations: 411.3 kB / 0.9118 GB, free: 24.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.026/2.759, allocations: 7.931 MB / 0.9196 GB, free: 21.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001558/2.759, allocations: 94.42 kB / 0.9196 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/2.759, allocations: 0 / 0.9196 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-05/2.759, allocations: 19.55 kB / 0.9197 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05196/2.811, allocations: 19.57 MB / 0.9388 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.955e-05/2.811, allocations: 8 kB / 0.9388 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004674/2.816, allocations: 0.5367 MB / 0.9393 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009152/2.825, allocations: 2.453 MB / 0.9417 GB, free: 8.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001025/2.826, allocations: 94.45 kB / 0.9418 GB, free: 8.328 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01472/2.841, allocations: 7.19 MB / 0.9488 GB, free: 1.645 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003263/2.844, allocations: 1.929 MB / 0.9507 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.034/2.878, allocations: 12.4 MB / 0.9628 GB, free: 4.449 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00438/2.883, allocations: 1.082 MB / 0.9639 GB, free: 3.453 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/2.884, allocations: 71.7 kB / 0.9639 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004899/2.889, allocations: 205.4 kB / 0.9641 GB, free: 3.238 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001654/2.891, allocations: 325.5 kB / 0.9644 GB, free: 3.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006144/2.892, allocations: 122.7 kB / 0.9646 GB, free: 2.926 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006444/2.898, allocations: 2.188 MB / 0.9667 GB, free: 1.102 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.898, allocations: 4 kB / 0.9667 GB, free: 1.098 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01158/2.91, allocations: 1.506 MB / 0.9682 GB, free: 0 / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (286): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.002344/2.912, allocations: 0.6134 MB / 0.9688 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02284/2.935, allocations: 7.343 MB / 0.9759 GB, free: 9.141 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/2.935, allocations: 1.625 kB / 0.9759 GB, free: 9.141 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01263/2.948, allocations: 3.662 MB / 0.9795 GB, free: 5.906 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00814/2.956, allocations: 0.8828 MB / 0.9804 GB, free: 5.219 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3833/3.339, allocations: 16.88 MB / 0.9969 GB, free: 99.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008976/3.348, allocations: 4.551 MB / 1.001 GB, free: 98.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002237/3.351, allocations: 331.5 kB / 1.002 GB, free: 98.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.292e-06/3.351, allocations: 0 / 1.002 GB, free: 98.39 MB / 474.7 MB Notification: Performance of Templates: time 0.6913/4.042, allocations: 234.6 MB / 1.231 GB, free: 82.42 MB / 474.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=2 -DSUNDIALS_MINOR_VERSION=6 -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:534:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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:534:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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'