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.001606/0.001606, allocations: 185.2 kB / 16.41 MB, free: 5.723 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.9/1.9, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001139/0.001139, allocations: 86.91 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004036/0.0004037, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3282, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1956/0.5238, allocations: 122.5 MB / 497 MB, free: 6.223 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/0.5242, allocations: 91.94 kB / 497.1 MB, free: 6.133 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.237/1.761, allocations: 193 MB / 0.6739 GB, free: 27.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.762, allocations: 0 / 0.6739 GB, free: 27.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001527/1.763, allocations: 203.4 kB / 0.6741 GB, free: 27.84 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.04357/1.807, allocations: 8.729 MB / 0.6827 GB, free: 24.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/1.807, allocations: 9.625 kB / 0.6827 GB, free: 24.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01792/1.825, allocations: 1.912 MB / 0.6845 GB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03003/1.855, allocations: 7.097 MB / 0.6915 GB, free: 23.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009626/1.856, allocations: 0.637 MB / 0.6921 GB, free: 23.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004077/1.86, allocations: 0.8507 MB / 0.6929 GB, free: 23.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04375/1.904, allocations: 11.17 MB / 0.7038 GB, free: 22.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006446/1.904, allocations: 8.219 kB / 0.7038 GB, free: 22.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003608/1.908, allocations: 368.8 kB / 0.7042 GB, free: 22.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004935/1.909, allocations: 377.1 kB / 0.7045 GB, free: 22.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03284/1.941, allocations: 9.102 MB / 0.7134 GB, free: 22.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1028/2.044, allocations: 35.96 MB / 0.7485 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02599/2.07, allocations: 17.03 MB / 0.7652 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02991/2.1, allocations: 9.43 MB / 0.7744 GB, free: 2.859 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.868e-05/2.101, allocations: 73.72 kB / 0.7745 GB, free: 2.793 MB / 426.7 MB Notification: Performance of pre-optimization done (n=330): time 6.913e-06/2.101, allocations: 3.562 kB / 0.7745 GB, free: 2.793 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.07139/2.172, allocations: 16.71 MB / 0.7908 GB, free: 5.621 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.424e-05/2.172, allocations: 90.41 kB / 0.7909 GB, free: 5.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/2.184, allocations: 3.858 MB / 0.7946 GB, free: 2.234 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008399/2.185, allocations: 90.73 kB / 0.7947 GB, free: 2.141 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004009/2.189, allocations: 3.57 MB / 0.7982 GB, free: 14.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002149/2.191, allocations: 1.3 MB / 0.7995 GB, free: 13.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006552/2.192, allocations: 92 kB / 0.7996 GB, free: 13.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000405/2.192, allocations: 496.2 kB / 0.8 GB, free: 13.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006855/2.199, allocations: 1.988 MB / 0.802 GB, free: 11.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008374/2.207, allocations: 3.402 MB / 0.8053 GB, free: 7.801 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00871/2.216, allocations: 2.575 MB / 0.8078 GB, free: 5.461 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.395e-05/2.216, allocations: 16 kB / 0.8078 GB, free: 5.445 MB / 458.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.3599/2.576, allocations: 6.416 MB / 0.8141 GB, free: 67.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/2.576, allocations: 32.77 kB / 0.8141 GB, free: 67.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/2.576, allocations: 47.5 kB / 0.8142 GB, free: 67.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003255/2.58, allocations: 0.7634 MB / 0.8149 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0084/2.588, allocations: 1.106 MB / 0.816 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01661/2.605, allocations: 10.52 MB / 0.8263 GB, free: 62.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006995/2.612, allocations: 265.1 kB / 0.8265 GB, free: 62.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/2.613, allocations: 207.8 kB / 0.8267 GB, free: 62.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * 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 (544): * Single equations (assignments): 536 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008069/2.621, allocations: 2.54 MB / 0.8292 GB, free: 62.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001797/2.623, allocations: 495.2 kB / 0.8297 GB, free: 62.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01936/2.642, allocations: 5.759 MB / 0.8353 GB, free: 61.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.526e-05/2.642, allocations: 34.69 kB / 0.8353 GB, free: 61.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.296e-05/2.642, allocations: 15.16 kB / 0.8354 GB, free: 61.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000115/2.643, allocations: 17.11 kB / 0.8354 GB, free: 61.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05605/2.699, allocations: 13.89 MB / 0.8489 GB, free: 60.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001103/2.699, allocations: 7.531 kB / 0.8489 GB, free: 60.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008186/2.707, allocations: 0.6686 MB / 0.8496 GB, free: 60.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005678/2.713, allocations: 0.9077 MB / 0.8505 GB, free: 60.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.714, allocations: 86.31 kB / 0.8506 GB, free: 60.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03202/2.746, allocations: 14.3 MB / 0.8645 GB, free: 53.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.406e-05/2.746, allocations: 16.3 kB / 0.8645 GB, free: 53.93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03421/2.78, allocations: 9.185 MB / 0.8735 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00548/2.786, allocations: 0.9948 MB / 0.8745 GB, free: 51.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002865/2.789, allocations: 79.47 kB / 0.8746 GB, free: 51.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005904/2.795, allocations: 221.7 kB / 0.8748 GB, free: 51.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001428/2.796, allocations: 292.1 kB / 0.875 GB, free: 51.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007175/2.797, allocations: 111.6 kB / 0.8752 GB, free: 51.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00838/2.805, allocations: 2.926 MB / 0.878 GB, free: 51.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.91e-07/2.805, allocations: 2.25 kB / 0.878 GB, free: 51.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009055/2.814, allocations: 1.552 MB / 0.8795 GB, free: 51.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 299 * 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.001759/2.816, allocations: 0.5748 MB / 0.8801 GB, free: 51.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01613/2.832, allocations: 5.89 MB / 0.8858 GB, free: 48.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/2.832, allocations: 0 / 0.8858 GB, free: 48.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01007/2.843, allocations: 3.622 MB / 0.8894 GB, free: 47.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008747/2.851, allocations: 1.054 MB / 0.8904 GB, free: 46.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05359/2.905, allocations: 18.09 MB / 0.9081 GB, free: 36.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01551/2.921, allocations: 5.106 MB / 0.9131 GB, free: 35.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003851/2.924, allocations: 366.7 kB / 0.9134 GB, free: 35.18 MB / 458.7 MB Notification: Performance of SimCode: time 1.803e-06/2.925, allocations: 0 / 0.9134 GB, free: 35.18 MB / 458.7 MB Notification: Performance of Templates: time 1.291/4.215, allocations: 320.5 MB / 1.226 GB, free: 124.4 MB / 0.5105 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:38: error: use of undeclared identifier \'_omcQ_24tmpVar12_\'; did you mean \'_omcQ_24tmpVar13_\'?\n _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar13_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: \'_omcQ_24tmpVar13_\' declared here\n double _omcQ_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403:38: error: use of undeclared identifier \'_omcQ_24tmpVar15_\'; did you mean \'_omcQ_24tmpVar16_\'?\n _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar16_\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: \'_omcQ_24tmpVar16_\' declared here\n double _omcQ_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'