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.002215/0.00222, allocations: 180.9 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.277/2.277, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001134/0.001134, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.904e-05/3.922e-05, allocations: 4 kB / 321.5 MB, free: 17.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 47.57 MB / 369.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5683/0.673, allocations: 167 MB / 0.5236 GB, free: 7.457 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.6735, allocations: 98.23 kB / 0.5237 GB, free: 7.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.266/2.939, allocations: 393.9 MB / 0.9084 GB, free: 44.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.334e-06/2.939, allocations: 0 / 0.9084 GB, free: 44.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001364/2.941, allocations: 261.1 kB / 0.9086 GB, free: 44.8 MB / 458.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.04934/2.99, allocations: 10.28 MB / 0.9186 GB, free: 41.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/2.99, allocations: 11.41 kB / 0.9187 GB, free: 41.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03639/3.026, allocations: 4.39 MB / 0.9229 GB, free: 40.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03407/3.061, allocations: 8.852 MB / 0.9316 GB, free: 39.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001319/3.062, allocations: 0.8317 MB / 0.9324 GB, free: 39.67 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005417/3.067, allocations: 1.081 MB / 0.9335 GB, free: 39.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06042/3.128, allocations: 17.25 MB / 0.9503 GB, free: 38.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006467/3.129, allocations: 14.25 kB / 0.9503 GB, free: 38.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004691/3.133, allocations: 475.5 kB / 0.9508 GB, free: 38.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00106/3.134, allocations: 0.696 MB / 0.9515 GB, free: 38.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04774/3.182, allocations: 14.97 MB / 0.9661 GB, free: 33.63 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.158/3.34, allocations: 58.15 MB / 1.023 GB, free: 10.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4062/3.746, allocations: 17.05 MB / 1.04 GB, free: 49.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01725/3.764, allocations: 6.183 MB / 1.046 GB, free: 49.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05637/3.82, allocations: 18.93 MB / 1.064 GB, free: 48.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.154e-05/3.82, allocations: 87.03 kB / 1.064 GB, free: 48.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=626): time 1.117e-05/3.82, allocations: 0 / 1.064 GB, free: 48.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=659): time 0.0726/3.893, allocations: 23.47 MB / 1.087 GB, free: 45.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005289/3.898, allocations: 2.934 MB / 1.09 GB, free: 43.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01105/3.909, allocations: 3.894 MB / 1.094 GB, free: 43.17 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001525/3.911, allocations: 111.9 kB / 1.094 GB, free: 43.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003559/3.915, allocations: 4.394 MB / 1.098 GB, free: 40.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003628/3.918, allocations: 2.207 MB / 1.1 GB, free: 39.55 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/3.92, allocations: 140.3 kB / 1.1 GB, free: 39.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008756/3.921, allocations: 0.6226 MB / 1.101 GB, free: 39.22 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01191/3.933, allocations: 4.363 MB / 1.105 GB, free: 38.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/3.947, allocations: 6.394 MB / 1.112 GB, free: 34.66 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01446/3.961, allocations: 5.495 MB / 1.117 GB, free: 32.45 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/3.962, allocations: 25.58 kB / 1.117 GB, free: 32.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=997) (initialization): time 0.03845/4, allocations: 12.84 MB / 1.129 GB, free: 27.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.526e-05/4, allocations: 34.78 kB / 1.129 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/4, allocations: 61.12 kB / 1.13 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008213/4.009, allocations: 2.403 MB / 1.132 GB, free: 26.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01197/4.021, allocations: 1.523 MB / 1.133 GB, free: 26.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01532/4.036, allocations: 10.4 MB / 1.144 GB, free: 19.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01139/4.047, allocations: 0.5307 MB / 1.144 GB, free: 19.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002246/4.05, allocations: 341.8 kB / 1.144 GB, free: 19.24 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (792): * Single equations (assignments): 723 * Array equations: 2 * 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.00374/4.054, allocations: 0.5102 MB / 1.145 GB, free: 18.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002786/4.056, allocations: 0.5558 MB / 1.145 GB, free: 18.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03693/4.093, allocations: 11.7 MB / 1.157 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02988/4.123, allocations: 10.37 MB / 1.167 GB, free: 9.277 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-05/4.123, allocations: 6.875 kB / 1.167 GB, free: 9.277 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001637/4.124, allocations: 32.5 kB / 1.167 GB, free: 9.277 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09407/4.218, allocations: 30.69 MB / 1.197 GB, free: 2.289 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001118/4.218, allocations: 4 kB / 1.197 GB, free: 2.285 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008313/4.226, allocations: 0.8779 MB / 1.198 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01115/4.237, allocations: 2.69 MB / 1.2 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00175/4.239, allocations: 149 kB / 1.201 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03016/4.269, allocations: 15.89 MB / 1.216 GB, free: 272 kB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3993/4.669, allocations: 2.809 MB / 1.219 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0532/4.722, allocations: 18.3 MB / 1.237 GB, free: 81.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006546/4.729, allocations: 1.57 MB / 1.238 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003217/4.732, allocations: 103.7 kB / 1.238 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008426/4.74, allocations: 346.1 kB / 1.239 GB, free: 81.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002736/4.743, allocations: 0.5046 MB / 1.239 GB, free: 81.58 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001711/4.745, allocations: 183.9 kB / 1.239 GB, free: 81.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008602/4.754, allocations: 2.882 MB / 1.242 GB, free: 81.38 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.22e-07/4.754, allocations: 2 kB / 1.242 GB, free: 81.38 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01312/4.767, allocations: 2.098 MB / 1.244 GB, free: 81.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (461): * Single equations (assignments): 393 * 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: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003056/4.77, allocations: 0.689 MB / 1.245 GB, free: 81.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02997/4.8, allocations: 10.89 MB / 1.256 GB, free: 80.69 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/4.8, allocations: 3.688 kB / 1.256 GB, free: 80.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01742/4.817, allocations: 5.89 MB / 1.261 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/4.828, allocations: 1.079 MB / 1.262 GB, free: 80.08 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0586/4.886, allocations: 18.76 MB / 1.281 GB, free: 76.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01475/4.901, allocations: 6.811 MB / 1.287 GB, free: 75.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003986/4.905, allocations: 472.9 kB / 1.288 GB, free: 75.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.542e-06/4.905, allocations: 0 / 1.288 GB, free: 75.9 MB / 0.4948 GB Notification: Performance of Templates: time 2.216/7.121, allocations: 0.6653 GB / 1.953 GB, free: 29.49 MB / 0.5417 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'