Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",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.002267/0.002267, 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 2.199/2.199, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001127/0.001127, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.073e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4914/0.5959, allocations: 113.5 MB / 482.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.5963, allocations: 82.33 kB / 482.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6656/1.262, allocations: 83.03 MB / 0.5525 GB, free: 93.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.262, allocations: 3.188 kB / 0.5525 GB, free: 93.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002906/1.262, allocations: 73.44 kB / 0.5526 GB, free: 93.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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.009842/1.272, allocations: 2.618 MB / 0.5552 GB, free: 91.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/1.272, allocations: 7.719 kB / 0.5552 GB, free: 91.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001658/1.274, allocations: 367.5 kB / 0.5555 GB, free: 91.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002934/1.277, allocations: 423.5 kB / 0.5559 GB, free: 91.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006585/1.284, allocations: 1.827 MB / 0.5577 GB, free: 91.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002911/1.284, allocations: 192.9 kB / 0.5579 GB, free: 91.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001202/1.285, allocations: 249.3 kB / 0.5581 GB, free: 91.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/1.296, allocations: 3.142 MB / 0.5612 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001569/1.296, allocations: 6.875 kB / 0.5612 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006426/1.297, allocations: 103.4 kB / 0.5613 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001574/1.297, allocations: 115.5 kB / 0.5614 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008559/1.305, allocations: 2.462 MB / 0.5638 GB, free: 90.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03038/1.336, allocations: 10.47 MB / 0.574 GB, free: 86.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/1.34, allocations: 1.771 MB / 0.5758 GB, free: 85.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00212/1.342, allocations: 0.8668 MB / 0.5766 GB, free: 84.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005414/1.342, allocations: 220.9 kB / 0.5768 GB, free: 84.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/1.342, allocations: 46.66 kB / 0.5769 GB, free: 84.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 4.939e-06/1.342, allocations: 4 kB / 0.5769 GB, free: 84.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=143): time 0.0277/1.37, allocations: 6.898 MB / 0.5836 GB, free: 82.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/1.37, allocations: 67.81 kB / 0.5837 GB, free: 82.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/1.374, allocations: 1.62 MB / 0.5853 GB, free: 81.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004181/1.375, allocations: 52.36 kB / 0.5853 GB, free: 81.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009589/1.376, allocations: 1.176 MB / 0.5865 GB, free: 80.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008105/1.377, allocations: 498.1 kB / 0.5869 GB, free: 80.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/1.377, allocations: 39.38 kB / 0.587 GB, free: 80.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/1.377, allocations: 379.4 kB / 0.5873 GB, free: 79.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/1.379, allocations: 0.8005 MB / 0.5881 GB, free: 79.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002489/1.382, allocations: 1.29 MB / 0.5894 GB, free: 78.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/1.384, allocations: 1.017 MB / 0.5904 GB, free: 78.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.159e-05/1.384, allocations: 3.5 kB / 0.5904 GB, free: 78.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007764/1.392, allocations: 2.722 MB / 0.593 GB, free: 77.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/1.392, allocations: 11.06 kB / 0.593 GB, free: 77.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.165e-05/1.392, allocations: 14.59 kB / 0.593 GB, free: 77.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/1.395, allocations: 0.5886 MB / 0.5936 GB, free: 77.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003165/1.398, allocations: 414.4 kB / 0.594 GB, free: 77.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.409, allocations: 5.448 MB / 0.5993 GB, free: 74.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/1.412, allocations: 138.4 kB / 0.5995 GB, free: 74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004672/1.413, allocations: 75.78 kB / 0.5995 GB, free: 73.99 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004792/1.413, allocations: 208.3 kB / 0.5997 GB, free: 73.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007996/1.414, allocations: 204 kB / 0.5999 GB, free: 73.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007187/1.421, allocations: 2.504 MB / 0.6024 GB, free: 72.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.501e-05/1.422, allocations: 12 kB / 0.6024 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/1.422, allocations: 8 kB / 0.6024 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.066e-05/1.422, allocations: 7.172 kB / 0.6024 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01579/1.437, allocations: 5.404 MB / 0.6077 GB, free: 68.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.497e-05/1.438, allocations: 4 kB / 0.6077 GB, free: 68.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002207/1.44, allocations: 252.1 kB / 0.6079 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00309/1.443, allocations: 0.6426 MB / 0.6086 GB, free: 67.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003557/1.443, allocations: 39.03 kB / 0.6086 GB, free: 67.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/1.456, allocations: 7.14 MB / 0.6156 GB, free: 60.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/1.456, allocations: 4 kB / 0.6156 GB, free: 60.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009193/1.466, allocations: 3.935 MB / 0.6194 GB, free: 56.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.467, allocations: 469.1 kB / 0.6199 GB, free: 56.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006888/1.468, allocations: 35.66 kB / 0.6199 GB, free: 56.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/1.471, allocations: 113.5 kB / 0.62 GB, free: 56.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000529/1.471, allocations: 123 kB / 0.6201 GB, free: 56.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/1.471, allocations: 50.61 kB / 0.6202 GB, free: 56.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003109/1.475, allocations: 1.244 MB / 0.6214 GB, free: 55.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.475, allocations: 0 / 0.6214 GB, free: 55.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003644/1.478, allocations: 0.6361 MB / 0.622 GB, free: 54.56 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0104/1.489, allocations: 5.596 MB / 0.6275 GB, free: 49.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006431/1.495, allocations: 2.478 MB / 0.6299 GB, free: 47.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.495, allocations: 0 / 0.6299 GB, free: 47.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004366/1.5, allocations: 1.559 MB / 0.6314 GB, free: 45.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/1.503, allocations: 409.5 kB / 0.6318 GB, free: 45.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/1.518, allocations: 4.885 MB / 0.6366 GB, free: 40.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002173/1.52, allocations: 2.048 MB / 0.6386 GB, free: 39.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00231/1.523, allocations: 1.03 MB / 0.6396 GB, free: 38.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/1.523, allocations: 0 / 0.6396 GB, free: 38.32 MB / 410.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:278: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:255:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:315: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:292:12: note: 'D_24tmpVar16_' declared here double D_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFMU.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o] Error 1