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.001448/0.001448, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.845/1.845, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001099/0.001099, allocations: 95.38 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003773, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3122, allocations: 47.56 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1945/0.5067, allocations: 122.4 MB / 497.1 MB, free: 6.211 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/0.5071, allocations: 87.95 kB / 497.2 MB, free: 6.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.171/1.678, allocations: 193 MB / 0.674 GB, free: 28.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.678, allocations: 4 kB / 0.674 GB, free: 28.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000749/1.679, allocations: 207.9 kB / 0.6742 GB, free: 28.02 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.03718/1.716, allocations: 8.735 MB / 0.6828 GB, free: 25.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/1.716, allocations: 9.438 kB / 0.6828 GB, free: 25.03 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004887/1.721, allocations: 1.188 MB / 0.6839 GB, free: 24.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/1.737, allocations: 1.911 MB / 0.6858 GB, free: 24.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02401/1.761, allocations: 7.094 MB / 0.6927 GB, free: 23.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007165/1.762, allocations: 0.6425 MB / 0.6934 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003188/1.765, allocations: 0.8436 MB / 0.6942 GB, free: 23.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03356/1.799, allocations: 11.17 MB / 0.7051 GB, free: 22.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003692/1.799, allocations: 7.328 kB / 0.7051 GB, free: 22.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/1.801, allocations: 371 kB / 0.7054 GB, free: 22.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004025/1.802, allocations: 373.5 kB / 0.7058 GB, free: 22.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02777/1.83, allocations: 9.099 MB / 0.7147 GB, free: 22.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08614/1.916, allocations: 35.96 MB / 0.7498 GB, free: 6.574 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02444/1.94, allocations: 17.04 MB / 0.7664 GB, free: 7.668 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02745/1.968, allocations: 9.428 MB / 0.7756 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.611e-05/1.968, allocations: 74.2 kB / 0.7757 GB, free: 2.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=330): time 6.402e-06/1.968, allocations: 0 / 0.7757 GB, free: 2.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.06833/2.036, allocations: 16.83 MB / 0.7922 GB, free: 4.918 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/2.036, allocations: 90.41 kB / 0.7922 GB, free: 4.816 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/2.047, allocations: 3.852 MB / 0.796 GB, free: 1.539 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007812/2.048, allocations: 89.7 kB / 0.7961 GB, free: 1.445 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003789/2.051, allocations: 3.571 MB / 0.7996 GB, free: 14.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00205/2.053, allocations: 1.304 MB / 0.8008 GB, free: 13.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005634/2.054, allocations: 92 kB / 0.8009 GB, free: 12.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003772/2.054, allocations: 497.4 kB / 0.8014 GB, free: 12.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006546/2.061, allocations: 1.985 MB / 0.8033 GB, free: 10.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007985/2.069, allocations: 3.399 MB / 0.8067 GB, free: 7.109 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007898/2.077, allocations: 2.583 MB / 0.8092 GB, free: 4.758 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.928e-05/2.077, allocations: 12 kB / 0.8092 GB, free: 4.746 MB / 458.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.3423/2.419, allocations: 6.425 MB / 0.8155 GB, free: 67.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/2.419, allocations: 25.16 kB / 0.8155 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/2.42, allocations: 47.59 kB / 0.8155 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003106/2.423, allocations: 0.7592 MB / 0.8163 GB, free: 67.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008092/2.431, allocations: 1.107 MB / 0.8174 GB, free: 67.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/2.446, allocations: 10.53 MB / 0.8277 GB, free: 62.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006206/2.452, allocations: 259 kB / 0.8279 GB, free: 62.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006569/2.453, allocations: 201.2 kB / 0.8281 GB, free: 62.56 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.006632/2.459, allocations: 2.545 MB / 0.8306 GB, free: 62.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/2.461, allocations: 493.4 kB / 0.831 GB, free: 62.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/2.476, allocations: 5.757 MB / 0.8367 GB, free: 62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.784e-05/2.476, allocations: 41.73 kB / 0.8367 GB, free: 61.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/2.476, allocations: 9.594 kB / 0.8367 GB, free: 61.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/2.476, allocations: 19.31 kB / 0.8367 GB, free: 61.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03581/2.512, allocations: 13.89 MB / 0.8503 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/2.512, allocations: 13.94 kB / 0.8503 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005626/2.518, allocations: 0.6683 MB / 0.851 GB, free: 60.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003569/2.521, allocations: 0.9008 MB / 0.8518 GB, free: 60.81 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004139/2.522, allocations: 92.27 kB / 0.8519 GB, free: 60.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/2.543, allocations: 14.31 MB / 0.8659 GB, free: 54.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/2.543, allocations: 14.34 kB / 0.8659 GB, free: 54.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02046/2.563, allocations: 9.178 MB / 0.8749 GB, free: 52.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003562/2.567, allocations: 0.9971 MB / 0.8759 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001552/2.568, allocations: 82.05 kB / 0.8759 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00526/2.574, allocations: 217.3 kB / 0.8761 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001224/2.575, allocations: 299.2 kB / 0.8764 GB, free: 52.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003828/2.575, allocations: 109.8 kB / 0.8765 GB, free: 52.19 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006961/2.582, allocations: 2.929 MB / 0.8794 GB, free: 51.71 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.582, allocations: 0 / 0.8794 GB, free: 51.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007737/2.59, allocations: 1.556 MB / 0.8809 GB, free: 51.55 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.02214/2.612, allocations: 11.36 MB / 0.892 GB, free: 45.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01395/2.626, allocations: 5.901 MB / 0.8978 GB, free: 42.53 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/2.626, allocations: 5.844 kB / 0.8978 GB, free: 42.53 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009064/2.635, allocations: 3.612 MB / 0.9013 GB, free: 40.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007497/2.643, allocations: 1.048 MB / 0.9023 GB, free: 40.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1376/2.78, allocations: 78.15 MB / 0.9786 GB, free: 8.594 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01076/2.791, allocations: 5.109 MB / 0.9836 GB, free: 4.816 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008903/2.8, allocations: 3.307 MB / 0.9869 GB, free: 1.738 MB / 490.7 MB Notification: Performance of SimCode: time 1.944e-06/2.8, allocations: 0 / 0.9869 GB, free: 1.738 MB / 490.7 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:38: error: use of undeclared identifier '_omcQ_24tmpVar12_'; did you mean '_omcQ_24tmpVar13_'? _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:343:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./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_'? _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:380:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_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