Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 181.3 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 1.957/1.957, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001034/0.001034, allocations: 82.77 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.106e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.08998, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5147/0.6047, allocations: 135.7 MB / 0.4929 GB, free: 6.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.6051, allocations: 83.27 kB / 0.493 GB, free: 6.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8395/1.445, allocations: 131.2 MB / 0.6211 GB, free: 63.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.445, allocations: 0 / 0.6211 GB, free: 63.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006562/1.445, allocations: 139.8 kB / 0.6212 GB, free: 62.89 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02359/1.469, allocations: 5.42 MB / 0.6265 GB, free: 57.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/1.469, allocations: 8.031 kB / 0.6265 GB, free: 57.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009612/1.479, allocations: 1.152 MB / 0.6277 GB, free: 56.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/1.499, allocations: 4.891 MB / 0.6324 GB, free: 51.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005846/1.499, allocations: 435.4 kB / 0.6328 GB, free: 50.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/1.502, allocations: 0.5584 MB / 0.6334 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02343/1.525, allocations: 7.061 MB / 0.6403 GB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002574/1.525, allocations: 4 kB / 0.6403 GB, free: 43.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001619/1.527, allocations: 243.9 kB / 0.6405 GB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003172/1.527, allocations: 251.3 kB / 0.6408 GB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01853/1.546, allocations: 5.601 MB / 0.6462 GB, free: 36.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06195/1.608, allocations: 23.92 MB / 0.6696 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01199/1.62, allocations: 8.646 MB / 0.678 GB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005589/1.626, allocations: 2.235 MB / 0.6802 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02269/1.648, allocations: 6.959 MB / 0.687 GB, free: 9.371 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.765e-05/1.648, allocations: 56.56 kB / 0.6871 GB, free: 9.305 MB / 426.7 MB Notification: Performance of pre-optimization done (n=237): time 6.192e-06/1.648, allocations: 0 / 0.6871 GB, free: 9.305 MB / 426.7 MB Notification: Performance of matching and sorting (n=288): time 0.3896/2.038, allocations: 12.17 MB / 0.699 GB, free: 76.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/2.038, allocations: 83.97 kB / 0.699 GB, free: 76.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01605/2.054, allocations: 2.944 MB / 0.7019 GB, free: 76.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001021/2.055, allocations: 71 kB / 0.702 GB, free: 76.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004627/2.06, allocations: 2.484 MB / 0.7044 GB, free: 75.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002465/2.063, allocations: 0.9842 MB / 0.7054 GB, free: 74.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009563/2.064, allocations: 71.41 kB / 0.7054 GB, free: 74.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006802/2.064, allocations: 458 kB / 0.7059 GB, free: 74.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007328/2.072, allocations: 1.484 MB / 0.7073 GB, free: 74.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008189/2.08, allocations: 2.645 MB / 0.7099 GB, free: 73.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005931/2.086, allocations: 1.954 MB / 0.7118 GB, free: 73.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-05/2.086, allocations: 11.75 kB / 0.7118 GB, free: 73.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.01848/2.105, allocations: 5.162 MB / 0.7169 GB, free: 72.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.46e-05/2.105, allocations: 22.09 kB / 0.7169 GB, free: 72.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/2.105, allocations: 42.55 kB / 0.7169 GB, free: 72.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004114/2.109, allocations: 0.869 MB / 0.7178 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007154/2.116, allocations: 0.8637 MB / 0.7186 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/2.135, allocations: 9.762 MB / 0.7281 GB, free: 68.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006148/2.141, allocations: 240 kB / 0.7284 GB, free: 68.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009973/2.142, allocations: 166.7 kB / 0.7285 GB, free: 68.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001023/2.143, allocations: 335.9 kB / 0.7289 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/2.145, allocations: 384.6 kB / 0.7292 GB, free: 68.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/2.159, allocations: 4.556 MB / 0.7337 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/2.16, allocations: 29.06 kB / 0.7337 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-05/2.16, allocations: 11.22 kB / 0.7337 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.933e-05/2.16, allocations: 13.78 kB / 0.7337 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03142/2.191, allocations: 9.986 MB / 0.7435 GB, free: 66.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01855/2.21, allocations: 3.825 MB / 0.7472 GB, free: 64.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004789/2.215, allocations: 0.4999 MB / 0.7477 GB, free: 64.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00461/2.219, allocations: 0.983 MB / 0.7487 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000707/2.22, allocations: 69.14 kB / 0.7487 GB, free: 64.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02281/2.243, allocations: 14.76 MB / 0.7631 GB, free: 53.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/2.243, allocations: 3.281 kB / 0.7631 GB, free: 53.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/2.261, allocations: 7.048 MB / 0.77 GB, free: 49.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003487/2.265, allocations: 0.7766 MB / 0.7708 GB, free: 48.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001651/2.266, allocations: 62.34 kB / 0.7708 GB, free: 48.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/2.272, allocations: 193.9 kB / 0.771 GB, free: 48.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001161/2.273, allocations: 214.3 kB / 0.7712 GB, free: 48.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003741/2.273, allocations: 82.11 kB / 0.7713 GB, free: 48.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006487/2.28, allocations: 2.217 MB / 0.7735 GB, free: 48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.422e-06/2.28, allocations: 0 / 0.7735 GB, free: 48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007781/2.288, allocations: 1.196 MB / 0.7746 GB, free: 47.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001772/2.289, allocations: 0.5773 MB / 0.7752 GB, free: 47.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/2.302, allocations: 4.676 MB / 0.7798 GB, free: 45.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/2.302, allocations: 0 / 0.7798 GB, free: 45.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008207/2.31, allocations: 2.97 MB / 0.7827 GB, free: 44.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007575/2.318, allocations: 0.8369 MB / 0.7835 GB, free: 43.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02794/2.346, allocations: 8.596 MB / 0.7919 GB, free: 36.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007054/2.353, allocations: 3.546 MB / 0.7953 GB, free: 34.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/2.355, allocations: 276.4 kB / 0.7956 GB, free: 33.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.392e-06/2.355, allocations: 0 / 0.7956 GB, free: 33.77 MB / 426.7 MB Notification: Performance of Templates: time 0.6637/3.019, allocations: 212.9 MB / 1.003 GB, free: 8.434 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:375:34: error: use of undeclared identifier \'D_24tmpVar12_\'; did you mean \'D_24tmpVar13_\'?\n D_24tmpVar13_ = std::cos(D_24tmpVar12_);\n ^~~~~~~~~~~~~\n D_24tmpVar13_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:352:12: note: \'D_24tmpVar13_\' declared here\n double D_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:412:34: error: use of undeclared identifier \'D_24tmpVar15_\'; did you mean \'D_24tmpVar16_\'?\n D_24tmpVar16_ = std::sin(D_24tmpVar15_);\n ^~~~~~~~~~~~~\n D_24tmpVar16_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:389:12: note: \'D_24tmpVar16_\' declared here\n double D_24tmpVar16_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'