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.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001578, allocations: 185.9 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.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001144/0.001144, allocations: 105 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005322/0.0005321, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3474, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5439/0.8914, allocations: 167.1 MB / 0.529 GB, free: 64.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003531/0.8918, allocations: 107.5 kB / 0.5291 GB, free: 64.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.84/2.731, allocations: 394.2 MB / 0.914 GB, free: 40.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.905e-06/2.731, allocations: 0 / 0.914 GB, free: 40.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008925/2.732, allocations: 268.5 kB / 0.9143 GB, free: 40.41 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.05027/2.783, allocations: 11.01 MB / 0.9251 GB, free: 36.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/2.783, allocations: 9.781 kB / 0.9251 GB, free: 36.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0374/2.82, allocations: 4.415 MB / 0.9294 GB, free: 36.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03125/2.851, allocations: 8.896 MB / 0.9381 GB, free: 32.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001344/2.853, allocations: 0.8293 MB / 0.9389 GB, free: 31.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005102/2.858, allocations: 1.08 MB / 0.9399 GB, free: 31.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05672/2.915, allocations: 17.51 MB / 0.957 GB, free: 16.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006232/2.915, allocations: 19.59 kB / 0.957 GB, free: 16.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004161/2.92, allocations: 472.7 kB / 0.9575 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001157/2.921, allocations: 0.6921 MB / 0.9582 GB, free: 15.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05186/2.973, allocations: 15.33 MB / 0.9731 GB, free: 360 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.502/3.475, allocations: 58.09 MB / 1.03 GB, free: 37.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02808/3.503, allocations: 17.24 MB / 1.047 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0482/3.551, allocations: 19.05 MB / 1.065 GB, free: 27.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.428e-05/3.551, allocations: 91.3 kB / 1.065 GB, free: 27.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=643): time 1.103e-05/3.551, allocations: 3.125 kB / 1.065 GB, free: 27.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=670): time 0.09787/3.649, allocations: 35.8 MB / 1.1 GB, free: 23.44 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/3.649, allocations: 144.6 kB / 1.101 GB, free: 23.33 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/3.66, allocations: 3.92 MB / 1.104 GB, free: 21.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001478/3.661, allocations: 120.1 kB / 1.104 GB, free: 21.81 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003389/3.665, allocations: 4.362 MB / 1.109 GB, free: 18.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00335/3.668, allocations: 2.233 MB / 1.111 GB, free: 16.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001306/3.67, allocations: 144.3 kB / 1.111 GB, free: 16.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007001/3.67, allocations: 0.6198 MB / 1.112 GB, free: 16.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01137/3.682, allocations: 4.44 MB / 1.116 GB, free: 14.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01471/3.696, allocations: 6.436 MB / 1.122 GB, free: 10.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01544/3.712, allocations: 5.547 MB / 1.128 GB, free: 7.723 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/3.712, allocations: 18.66 kB / 1.128 GB, free: 7.719 MB / 474.7 MB Notification: Performance of matching and sorting (n=1001) (initialization): time 0.03919/3.751, allocations: 13 MB / 1.14 GB, free: 1.887 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.15e-05/3.751, allocations: 29.03 kB / 1.14 GB, free: 1.859 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/3.752, allocations: 60 kB / 1.14 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00851/3.76, allocations: 2.421 MB / 1.143 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01245/3.773, allocations: 1.54 MB / 1.144 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01771/3.79, allocations: 10.46 MB / 1.155 GB, free: 4.652 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01051/3.801, allocations: 489.1 kB / 1.155 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/3.803, allocations: 343.4 kB / 1.155 GB, free: 3.977 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (800): * Single equations (assignments): 733 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.01218/3.815, allocations: 3.787 MB / 1.159 GB, free: 0.7891 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0022/3.818, allocations: 0.5512 MB / 1.16 GB, free: 240 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0388/3.856, allocations: 11.85 MB / 1.171 GB, free: 6.273 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3982/4.255, allocations: 8.459 MB / 1.179 GB, free: 97.64 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.085e-05/4.255, allocations: 7.281 kB / 1.179 GB, free: 97.64 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001573/4.255, allocations: 29.86 kB / 1.179 GB, free: 97.64 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06659/4.322, allocations: 24.62 MB / 1.203 GB, free: 96.49 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-05/4.322, allocations: 4.844 kB / 1.203 GB, free: 96.49 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008316/4.33, allocations: 0.9189 MB / 1.204 GB, free: 96.49 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008696/4.339, allocations: 2.426 MB / 1.207 GB, free: 96.42 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001532/4.34, allocations: 146.6 kB / 1.207 GB, free: 96.42 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01934/4.36, allocations: 14.2 MB / 1.221 GB, free: 89.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/4.36, allocations: 6.781 kB / 1.221 GB, free: 89.07 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04591/4.406, allocations: 18.4 MB / 1.239 GB, free: 86.79 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005749/4.411, allocations: 1.567 MB / 1.24 GB, free: 86.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002668/4.414, allocations: 107.4 kB / 1.24 GB, free: 86.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007476/4.422, allocations: 320 kB / 1.241 GB, free: 86.03 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002426/4.424, allocations: 0.4992 MB / 1.241 GB, free: 85.93 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001018/4.425, allocations: 184.4 kB / 1.241 GB, free: 85.89 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007699/4.433, allocations: 2.925 MB / 1.244 GB, free: 84.8 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.01e-07/4.433, allocations: 0 / 1.244 GB, free: 84.8 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01245/4.445, allocations: 2.005 MB / 1.246 GB, free: 84.59 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel,smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re) * 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 (482): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.002604/4.448, allocations: 0.5741 MB / 1.247 GB, free: 84.39 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03058/4.479, allocations: 11.04 MB / 1.258 GB, free: 80.11 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/4.479, allocations: 0 / 1.258 GB, free: 80.11 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01701/4.496, allocations: 5.85 MB / 1.263 GB, free: 77.61 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01019/4.506, allocations: 1.07 MB / 1.264 GB, free: 77.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.068/4.574, allocations: 26 MB / 1.29 GB, free: 63.64 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01505/4.589, allocations: 6.788 MB / 1.296 GB, free: 61.33 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003801/4.593, allocations: 459.6 kB / 1.297 GB, free: 61.3 MB / 0.4949 GB Notification: Performance of SimCode: time 1.853e-06/4.593, allocations: 0 / 1.297 GB, free: 61.3 MB / 0.4949 GB Notification: Performance of Templates: time 2.595/7.188, allocations: 0.6628 GB / 1.96 GB, free: 117.3 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp325 = 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.SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp325 = 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.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'