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.00236/0.00236, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.00115/0.001149, allocations: 78.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.524e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.09867, allocations: 47.58 MB / 369.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5227/0.6215, allocations: 148.9 MB / 0.5059 GB, free: 9.246 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.6219, allocations: 99.25 kB / 0.506 GB, free: 9.191 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.345/1.967, allocations: 232.1 MB / 0.7327 GB, free: 42.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.967, allocations: 0 / 0.7327 GB, free: 42.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006259/1.968, allocations: 163.1 kB / 0.7329 GB, free: 42.37 MB / 410.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.03299/2.001, allocations: 6.783 MB / 0.7395 GB, free: 40.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/2.001, allocations: 10.22 kB / 0.7395 GB, free: 40.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.032/2.033, allocations: 3.658 MB / 0.7431 GB, free: 39.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02227/2.055, allocations: 5.937 MB / 0.7489 GB, free: 38.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008349/2.056, allocations: 0.5276 MB / 0.7494 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00368/2.06, allocations: 0.6909 MB / 0.75 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0394/2.099, allocations: 11.31 MB / 0.7611 GB, free: 37.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005067/2.1, allocations: 20.72 kB / 0.7611 GB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003293/2.103, allocations: 302.4 kB / 0.7614 GB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007896/2.104, allocations: 498.5 kB / 0.7619 GB, free: 37.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0333/2.137, allocations: 10.48 MB / 0.7721 GB, free: 33.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09884/2.236, allocations: 38.32 MB / 0.8095 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02538/2.262, allocations: 18.4 MB / 0.8275 GB, free: 4.086 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01136/2.273, allocations: 4.207 MB / 0.8316 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0416/2.315, allocations: 13.66 MB / 0.845 GB, free: 4.703 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.411e-05/2.315, allocations: 72.84 kB / 0.845 GB, free: 4.625 MB / 442.7 MB Notification: Performance of pre-optimization done (n=399): time 8.285e-06/2.315, allocations: 0 / 0.845 GB, free: 4.625 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.3862/2.701, allocations: 14.47 MB / 0.8592 GB, free: 71.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002778/2.704, allocations: 1.937 MB / 0.861 GB, free: 69.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009403/2.713, allocations: 2.936 MB / 0.8639 GB, free: 69.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001062/2.714, allocations: 83.95 kB / 0.864 GB, free: 69.37 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003215/2.718, allocations: 3.018 MB / 0.8669 GB, free: 68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002743/2.721, allocations: 1.399 MB / 0.8683 GB, free: 67.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008459/2.721, allocations: 106.1 kB / 0.8684 GB, free: 67.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006959/2.722, allocations: 0.5284 MB / 0.8689 GB, free: 66.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008655/2.731, allocations: 2.841 MB / 0.8717 GB, free: 66.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0114/2.742, allocations: 4.847 MB / 0.8764 GB, free: 64.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/2.753, allocations: 3.758 MB / 0.8801 GB, free: 64.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/2.753, allocations: 15.88 kB / 0.8801 GB, free: 64.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02629/2.779, allocations: 9.129 MB / 0.889 GB, free: 64.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.04e-05/2.78, allocations: 33.38 kB / 0.8891 GB, free: 64.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/2.78, allocations: 65.22 kB / 0.8891 GB, free: 64.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008247/2.788, allocations: 2.46 MB / 0.8915 GB, free: 63.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007709/2.796, allocations: 1.055 MB / 0.8926 GB, free: 63.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009684/2.805, allocations: 5.398 MB / 0.8978 GB, free: 62.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007335/2.813, allocations: 323.7 kB / 0.8981 GB, free: 62.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001735/2.815, allocations: 264.3 kB / 0.8984 GB, free: 62.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * 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.001885/2.817, allocations: 442 kB / 0.8988 GB, free: 62.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/2.818, allocations: 417.6 kB / 0.8992 GB, free: 62.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02327/2.842, allocations: 7.799 MB / 0.9068 GB, free: 60.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001495/2.842, allocations: 94.02 kB / 0.9069 GB, free: 60.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/2.842, allocations: 3.438 kB / 0.9069 GB, free: 60.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001157/2.842, allocations: 20.72 kB / 0.9069 GB, free: 60.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05673/2.899, allocations: 19.41 MB / 0.9259 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-05/2.899, allocations: 7.531 kB / 0.9259 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00484/2.904, allocations: 0.5364 MB / 0.9264 GB, free: 52.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008689/2.912, allocations: 2.427 MB / 0.9288 GB, free: 51.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001162/2.914, allocations: 98.31 kB / 0.9289 GB, free: 51.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/2.926, allocations: 7.162 MB / 0.9359 GB, free: 46.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002377/2.929, allocations: 1.87 MB / 0.9377 GB, free: 45.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03018/2.959, allocations: 12.23 MB / 0.9496 GB, free: 39.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004629/2.964, allocations: 1.087 MB / 0.9507 GB, free: 38.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002193/2.966, allocations: 68.94 kB / 0.9508 GB, free: 38.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005614/2.972, allocations: 198.5 kB / 0.951 GB, free: 38.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001723/2.973, allocations: 324.3 kB / 0.9513 GB, free: 38.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007736/2.974, allocations: 125.5 kB / 0.9514 GB, free: 38.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005661/2.98, allocations: 2.154 MB / 0.9535 GB, free: 37.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.98, allocations: 0 / 0.9535 GB, free: 37.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008917/2.989, allocations: 1.377 MB / 0.9548 GB, free: 35.99 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * 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.002141/2.991, allocations: 0.7074 MB / 0.9555 GB, free: 35.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02045/3.012, allocations: 7.225 MB / 0.9626 GB, free: 28.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/3.012, allocations: 4 kB / 0.9626 GB, free: 28.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01138/3.023, allocations: 3.601 MB / 0.9661 GB, free: 25.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008793/3.032, allocations: 0.8902 MB / 0.967 GB, free: 24.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04131/3.073, allocations: 12.15 MB / 0.9788 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01024/3.084, allocations: 4.549 MB / 0.9833 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/3.086, allocations: 329.7 kB / 0.9836 GB, free: 10.2 MB / 442.7 MB Notification: Performance of SimCode: time 2.735e-06/3.086, allocations: 0 / 0.9836 GB, free: 10.2 MB / 442.7 MB Notification: Performance of Templates: time 1.263/4.349, allocations: 235.4 MB / 1.213 GB, free: 105.5 MB / 490.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'