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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 186 kB / 16.41 MB, free: 5.727 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.954/1.954, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001128/0.001128, allocations: 92.41 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003753, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3367, allocations: 47.57 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5309/0.8676, allocations: 163.2 MB / 0.5252 GB, free: 65.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.868, allocations: 109.8 kB / 0.5253 GB, free: 65.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863/2.731, allocations: 396 MB / 0.912 GB, free: 36.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.732, allocations: 0 / 0.912 GB, free: 36.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000992/2.733, allocations: 296.6 kB / 0.9123 GB, free: 36.83 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05672/2.789, allocations: 12.01 MB / 0.924 GB, free: 32.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/2.789, allocations: 6.625 kB / 0.924 GB, free: 32.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05508/2.844, allocations: 6.46 MB / 0.9303 GB, free: 32.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03579/2.88, allocations: 9.699 MB / 0.9398 GB, free: 28.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001512/2.882, allocations: 0.9501 MB / 0.9407 GB, free: 27.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006385/2.888, allocations: 1.232 MB / 0.9419 GB, free: 26.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07128/2.96, allocations: 20.91 MB / 0.9624 GB, free: 8.492 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008549/2.96, allocations: 23.81 kB / 0.9624 GB, free: 8.469 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005827/2.966, allocations: 0.5329 MB / 0.9629 GB, free: 7.953 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00156/2.968, allocations: 0.8578 MB / 0.9637 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06339/3.031, allocations: 18.95 MB / 0.9823 GB, free: 4.125 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5466/3.578, allocations: 65.87 MB / 1.047 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05533/3.633, allocations: 46.18 MB / 1.092 GB, free: 15.08 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06745/3.701, allocations: 23.97 MB / 1.115 GB, free: 3.605 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/3.701, allocations: 105.2 kB / 1.115 GB, free: 3.516 MB / 474.7 MB Notification: Performance of pre-optimization done (n=783): time 1.272e-05/3.701, allocations: 0 / 1.115 GB, free: 3.516 MB / 474.7 MB Notification: Performance of matching and sorting (n=825): time 0.1893/3.89, allocations: 46.84 MB / 1.161 GB, free: 13.74 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/3.891, allocations: 127.7 kB / 1.161 GB, free: 13.6 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/3.901, allocations: 3.809 MB / 1.165 GB, free: 10.38 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001857/3.903, allocations: 133.7 kB / 1.165 GB, free: 10.24 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.00478/3.908, allocations: 4.849 MB / 1.17 GB, free: 5.891 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004926/3.913, allocations: 2.741 MB / 1.172 GB, free: 3.418 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/3.914, allocations: 168 kB / 1.172 GB, free: 3.254 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009592/3.915, allocations: 0.6781 MB / 1.173 GB, free: 2.672 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02639/3.941, allocations: 5.868 MB / 1.179 GB, free: 0 / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3949/4.336, allocations: 7.65 MB / 1.186 GB, free: 98.24 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0164/4.353, allocations: 6.533 MB / 1.193 GB, free: 98.14 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/4.353, allocations: 23.53 kB / 1.193 GB, free: 98.14 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04704/4.4, allocations: 15.67 MB / 1.208 GB, free: 97.84 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/4.4, allocations: 37.59 kB / 1.208 GB, free: 97.84 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/4.4, allocations: 73.78 kB / 1.208 GB, free: 97.84 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/4.414, allocations: 4.131 MB / 1.212 GB, free: 97.73 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/4.427, allocations: 1.689 MB / 1.214 GB, free: 97.73 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01994/4.447, allocations: 12.21 MB / 1.226 GB, free: 93.13 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/4.458, allocations: 455.4 kB / 1.226 GB, free: 93.13 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002553/4.46, allocations: 409.7 kB / 1.227 GB, free: 93.12 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (878): * Single equations (assignments): 822 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01394/4.474, allocations: 4.456 MB / 1.231 GB, free: 93.01 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002846/4.477, allocations: 0.6103 MB / 1.232 GB, free: 93.01 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04623/4.523, allocations: 14.6 MB / 1.246 GB, free: 90.2 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003132/4.524, allocations: 199 kB / 1.246 GB, free: 90.11 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.009e-05/4.524, allocations: 0 / 1.246 GB, free: 90.11 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001729/4.524, allocations: 36.05 kB / 1.246 GB, free: 90.11 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08243/4.606, allocations: 29.34 MB / 1.275 GB, free: 77.47 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001112/4.606, allocations: 3.75 kB / 1.275 GB, free: 77.47 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01013/4.617, allocations: 1.086 MB / 1.276 GB, free: 77.44 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01337/4.63, allocations: 4.011 MB / 1.28 GB, free: 76.16 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00203/4.632, allocations: 175 kB / 1.28 GB, free: 76.06 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01966/4.652, allocations: 12.06 MB / 1.292 GB, free: 67.55 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/4.652, allocations: 7.375 kB / 1.292 GB, free: 67.55 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05655/4.708, allocations: 22.17 MB / 1.313 GB, free: 47.89 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0066/4.715, allocations: 1.792 MB / 1.315 GB, free: 46.28 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0032/4.718, allocations: 123.3 kB / 1.315 GB, free: 46.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008096/4.726, allocations: 336.9 kB / 1.315 GB, free: 45.93 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002935/4.729, allocations: 0.5842 MB / 1.316 GB, free: 45.55 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001985/4.731, allocations: 225.5 kB / 1.316 GB, free: 45.35 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007805/4.739, allocations: 2.845 MB / 1.319 GB, free: 42.99 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.51e-07/4.739, allocations: 0 / 1.319 GB, free: 42.99 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01352/4.753, allocations: 2.226 MB / 1.321 GB, free: 40.78 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (563): * Single equations (assignments): 507 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003023/4.756, allocations: 0.6899 MB / 1.322 GB, free: 40.27 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0367/4.793, allocations: 13.25 MB / 1.335 GB, free: 28.77 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/4.793, allocations: 0.9375 kB / 1.335 GB, free: 28.77 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02005/4.813, allocations: 6.861 MB / 1.341 GB, free: 22.77 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0117/4.825, allocations: 1.275 MB / 1.343 GB, free: 21.78 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4728/5.297, allocations: 30.45 MB / 1.372 GB, free: 85.2 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01985/5.317, allocations: 7.853 MB / 1.38 GB, free: 84.29 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004343/5.322, allocations: 0.509 MB / 1.381 GB, free: 84.29 MB / 0.4949 GB Notification: Performance of SimCode: time 1.032e-06/5.322, allocations: 3.875 kB / 1.381 GB, free: 84.29 MB / 0.4949 GB Notification: Performance of Templates: time 2.711/8.033, allocations: 0.7262 GB / 2.107 GB, free: 121.9 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp311 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp311 = 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_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1\n'