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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001476/0.001476, 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 1.936/1.936, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001067/0.001067, allocations: 82.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.297e-05/3.303e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09041, allocations: 47.57 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.544, allocations: 122.4 MB / 491.4 MB, free: 3.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.5443, allocations: 84.58 kB / 491.5 MB, free: 3.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.081/1.626, allocations: 193.1 MB / 0.6686 GB, free: 12.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.626, allocations: 4 kB / 0.6686 GB, free: 12.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008511/1.627, allocations: 207.8 kB / 0.6688 GB, free: 12.01 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.036/1.663, allocations: 7.913 MB / 0.6765 GB, free: 4.008 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/1.663, allocations: 12.03 kB / 0.6765 GB, free: 3.996 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/1.679, allocations: 1.901 MB / 0.6784 GB, free: 2.082 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02732/1.706, allocations: 7.042 MB / 0.6853 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009776/1.707, allocations: 0.646 MB / 0.6859 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00382/1.711, allocations: 0.8474 MB / 0.6867 GB, free: 9.473 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3656/2.077, allocations: 10.92 MB / 0.6974 GB, free: 36.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005913/2.077, allocations: 7.375 kB / 0.6974 GB, free: 36.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003185/2.08, allocations: 371 kB / 0.6978 GB, free: 36.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006493/2.081, allocations: 370.9 kB / 0.6981 GB, free: 36.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03155/2.113, allocations: 8.743 MB / 0.7067 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09857/2.211, allocations: 36.09 MB / 0.7419 GB, free: 29.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02291/2.234, allocations: 16.78 MB / 0.7583 GB, free: 17.51 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009128/2.243, allocations: 3.372 MB / 0.7616 GB, free: 17.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02849/2.272, allocations: 9.533 MB / 0.7709 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.595e-05/2.272, allocations: 65.16 kB / 0.7709 GB, free: 13.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=296): time 6.552e-06/2.272, allocations: 0 / 0.7709 GB, free: 13.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=348): time 0.03791/2.31, allocations: 11.57 MB / 0.7822 GB, free: 8.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/2.31, allocations: 86.81 kB / 0.7823 GB, free: 8.004 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009928/2.32, allocations: 3.837 MB / 0.7861 GB, free: 6.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007529/2.321, allocations: 80.64 kB / 0.7861 GB, free: 6.465 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003005/2.324, allocations: 3.634 MB / 0.7897 GB, free: 3.586 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001647/2.326, allocations: 1.187 MB / 0.7909 GB, free: 2.668 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004737/2.326, allocations: 95.25 kB / 0.7909 GB, free: 2.598 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002998/2.326, allocations: 479.6 kB / 0.7914 GB, free: 2.207 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/2.331, allocations: 1.722 MB / 0.7931 GB, free: 1.496 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006183/2.337, allocations: 3.163 MB / 0.7962 GB, free: 14.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00647/2.344, allocations: 2.312 MB / 0.7984 GB, free: 14.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.66e-05/2.344, allocations: 13.88 kB / 0.7984 GB, free: 14.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01774/2.362, allocations: 5.835 MB / 0.8041 GB, free: 11.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/2.362, allocations: 23.88 kB / 0.8042 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/2.362, allocations: 49.03 kB / 0.8042 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/2.365, allocations: 0.7346 MB / 0.8049 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008005/2.373, allocations: 1.055 MB / 0.806 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01675/2.39, allocations: 10.06 MB / 0.8158 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006822/2.397, allocations: 262 kB / 0.816 GB, free: 3.691 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001102/2.398, allocations: 202 kB / 0.8162 GB, free: 3.656 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001273/2.4, allocations: 377.1 kB / 0.8166 GB, free: 3.398 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/2.401, allocations: 484 kB / 0.8171 GB, free: 3.152 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01576/2.417, allocations: 5.096 MB / 0.822 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-05/2.417, allocations: 32.66 kB / 0.8221 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.213e-05/2.417, allocations: 13.09 kB / 0.8221 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.864e-05/2.417, allocations: 17.86 kB / 0.8221 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03624/2.454, allocations: 12.46 MB / 0.8343 GB, free: 11.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-05/2.454, allocations: 3.438 kB / 0.8343 GB, free: 11.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005314/2.459, allocations: 0.6116 MB / 0.8349 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003909/2.463, allocations: 0.8977 MB / 0.8357 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007577/2.464, allocations: 86.84 kB / 0.8358 GB, free: 11.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02516/2.489, allocations: 13.97 MB / 0.8495 GB, free: 13.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/2.489, allocations: 14.67 kB / 0.8495 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02176/2.511, allocations: 8.097 MB / 0.8574 GB, free: 6.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004411/2.515, allocations: 0.9546 MB / 0.8583 GB, free: 5.352 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002051/2.517, allocations: 69.03 kB / 0.8584 GB, free: 5.285 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00567/2.523, allocations: 212.2 kB / 0.8586 GB, free: 5.121 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/2.525, allocations: 272.8 kB / 0.8588 GB, free: 4.957 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004748/2.525, allocations: 99.22 kB / 0.8589 GB, free: 4.867 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008968/2.534, allocations: 2.897 MB / 0.8618 GB, free: 2.25 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.332e-06/2.534, allocations: 0 / 0.8618 GB, free: 2.25 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009705/2.544, allocations: 1.543 MB / 0.8633 GB, free: 0.7305 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002086/2.546, allocations: 0.6937 MB / 0.8639 GB, free: 188 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3579/2.904, allocations: 5.68 MB / 0.8695 GB, free: 80.24 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/2.904, allocations: 1.469 kB / 0.8695 GB, free: 80.24 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009317/2.913, allocations: 3.275 MB / 0.8727 GB, free: 79.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00876/2.922, allocations: 1.058 MB / 0.8737 GB, free: 79.53 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04168/2.964, allocations: 12.04 MB / 0.8855 GB, free: 76.87 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01121/2.975, allocations: 5.1 MB / 0.8905 GB, free: 76.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002481/2.978, allocations: 359.8 kB / 0.8908 GB, free: 76.04 MB / 474.7 MB Notification: Performance of SimCode: time 1.502e-06/2.978, allocations: 0 / 0.8908 GB, free: 76.04 MB / 474.7 MB Notification: Performance of Templates: time 0.838/3.816, allocations: 319.1 MB / 1.202 GB, free: 12.79 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:366: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_Generator_MultiPhaseFunctions.cpp:343:12: note: \'D_24tmpVar13_\' declared here\n double D_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403: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_Generator_MultiPhaseFunctions.cpp:380: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_Generator_MultiPhaseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1\n'