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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.00155, allocations: 180.9 kB / 13.65 MB, free: 1.66 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.137/2.137, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001091/0.001091, allocations: 94.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.847e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0999/0.09998, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4913/0.5913, allocations: 122.4 MB / 491.5 MB, free: 3.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.5917, allocations: 85.27 kB / 491.6 MB, free: 3.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.013/1.605, allocations: 193.1 MB / 0.6687 GB, free: 12.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.605, allocations: 0 / 0.6687 GB, free: 12.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000871/1.606, allocations: 199.8 kB / 0.6689 GB, free: 11.99 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.04579/1.652, allocations: 7.924 MB / 0.6766 GB, free: 3.977 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/1.652, allocations: 12.03 kB / 0.6767 GB, free: 3.965 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006342/1.658, allocations: 1.169 MB / 0.6778 GB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02379/1.682, allocations: 1.913 MB / 0.6797 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04412/1.726, allocations: 7.038 MB / 0.6865 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001614/1.728, allocations: 0.6382 MB / 0.6872 GB, free: 9.109 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005807/1.734, allocations: 0.8436 MB / 0.688 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6904/2.424, allocations: 10.93 MB / 0.6987 GB, free: 33.99 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006038/2.425, allocations: 11.98 kB / 0.6987 GB, free: 33.99 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003516/2.428, allocations: 366.4 kB / 0.699 GB, free: 33.99 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007118/2.429, allocations: 371.5 kB / 0.6994 GB, free: 33.97 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03224/2.461, allocations: 8.742 MB / 0.7079 GB, free: 33.89 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/2.566, allocations: 36.08 MB / 0.7431 GB, free: 27.34 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02361/2.59, allocations: 16.78 MB / 0.7595 GB, free: 14.86 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009523/2.6, allocations: 3.376 MB / 0.7628 GB, free: 14.8 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03218/2.632, allocations: 9.525 MB / 0.7721 GB, free: 26.91 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.821e-05/2.632, allocations: 67.62 kB / 0.7722 GB, free: 26.84 MB / 442.8 MB Notification: Performance of pre-optimization done (n=296): time 7.505e-06/2.632, allocations: 3.281 kB / 0.7722 GB, free: 26.84 MB / 442.8 MB Notification: Performance of matching and sorting (n=348): time 0.04099/2.673, allocations: 11.56 MB / 0.7835 GB, free: 21.71 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/2.673, allocations: 89.03 kB / 0.7836 GB, free: 21.64 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/2.684, allocations: 3.835 MB / 0.7873 GB, free: 20.18 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008048/2.685, allocations: 87.3 kB / 0.7874 GB, free: 20.1 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003272/2.689, allocations: 3.618 MB / 0.7909 GB, free: 17.23 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001729/2.69, allocations: 1.192 MB / 0.7921 GB, free: 16.31 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000558/2.691, allocations: 93.06 kB / 0.7922 GB, free: 16.24 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004454/2.691, allocations: 483.4 kB / 0.7926 GB, free: 15.85 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004915/2.696, allocations: 1.725 MB / 0.7943 GB, free: 15.13 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/2.703, allocations: 3.16 MB / 0.7974 GB, free: 12.6 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006893/2.71, allocations: 2.305 MB / 0.7997 GB, free: 11.7 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-05/2.71, allocations: 17.86 kB / 0.7997 GB, free: 11.7 MB / 442.8 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01909/2.729, allocations: 5.846 MB / 0.8054 GB, free: 9.551 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.225e-05/2.73, allocations: 23.38 kB / 0.8054 GB, free: 9.551 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/2.73, allocations: 51.5 kB / 0.8055 GB, free: 9.551 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003416/2.733, allocations: 0.7307 MB / 0.8062 GB, free: 9.312 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008172/2.741, allocations: 1.051 MB / 0.8072 GB, free: 9.273 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/2.76, allocations: 10.07 MB / 0.817 GB, free: 1.418 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006811/2.766, allocations: 259.9 kB / 0.8173 GB, free: 1.328 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/2.768, allocations: 201.1 kB / 0.8175 GB, free: 1.293 MB / 442.8 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.001683/2.769, allocations: 383.4 kB / 0.8178 GB, free: 1.031 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/2.771, allocations: 494.1 kB / 0.8183 GB, free: 0.7812 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0181/2.789, allocations: 5.133 MB / 0.8233 GB, free: 14.75 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.984e-05/2.789, allocations: 34.28 kB / 0.8234 GB, free: 14.75 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-05/2.789, allocations: 11.19 kB / 0.8234 GB, free: 14.75 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/2.79, allocations: 18 kB / 0.8234 GB, free: 14.75 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04114/2.831, allocations: 12.46 MB / 0.8356 GB, free: 9.273 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.738e-05/2.831, allocations: 3.469 kB / 0.8356 GB, free: 9.273 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005501/2.836, allocations: 0.6107 MB / 0.8362 GB, free: 9.25 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004056/2.84, allocations: 0.8862 MB / 0.837 GB, free: 8.961 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007667/2.841, allocations: 89.73 kB / 0.8371 GB, free: 8.91 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02671/2.868, allocations: 13.96 MB / 0.8507 GB, free: 11.43 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/2.868, allocations: 11.42 kB / 0.8507 GB, free: 11.43 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02288/2.891, allocations: 8.09 MB / 0.8586 GB, free: 3.703 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004455/2.896, allocations: 0.9555 MB / 0.8596 GB, free: 2.824 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/2.898, allocations: 72 kB / 0.8596 GB, free: 2.754 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005805/2.904, allocations: 217.1 kB / 0.8599 GB, free: 2.586 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00144/2.905, allocations: 269.3 kB / 0.8601 GB, free: 2.43 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006871/2.906, allocations: 106.4 kB / 0.8602 GB, free: 2.336 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.3979/3.304, allocations: 2.894 MB / 0.863 GB, free: 78.97 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.333e-06/3.304, allocations: 3.031 kB / 0.863 GB, free: 78.97 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01052/3.314, allocations: 1.533 MB / 0.8645 GB, free: 78.97 MB / 474.8 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.02605/3.34, allocations: 10.21 MB / 0.8745 GB, free: 76.04 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.015/3.356, allocations: 5.276 MB / 0.8797 GB, free: 75.23 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/3.356, allocations: 3.812 kB / 0.8797 GB, free: 75.23 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009662/3.365, allocations: 3.265 MB / 0.8829 GB, free: 74.54 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009296/3.375, allocations: 1.07 MB / 0.8839 GB, free: 74.52 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05059/3.425, allocations: 14.07 MB / 0.8976 GB, free: 71.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01151/3.437, allocations: 5.095 MB / 0.9026 GB, free: 70.8 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008514/3.445, allocations: 3.314 MB / 0.9059 GB, free: 70.8 MB / 474.8 MB Notification: Performance of SimCode: time 1.573e-06/3.445, allocations: 0 / 0.9059 GB, free: 70.8 MB / 474.8 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -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 In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28: ./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_'? D_24tmpVar13_ = std::cos(D_24tmpVar12_); ^~~~~~~~~~~~~ D_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./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_'? D_24tmpVar16_ = std::sin(D_24tmpVar15_); ^~~~~~~~~~~~~ D_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: 'D_24tmpVar16_' declared here double D_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1