Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",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.001632/0.001632, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.036/2.036, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.00122/0.00122, allocations: 92.69 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003867, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3273, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.5005, allocations: 109.1 MB / 483.8 MB, free: 3.488 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.5009, allocations: 99.95 kB / 483.8 MB, free: 3.391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4793/0.9802, allocations: 51.97 MB / 0.5233 GB, free: 93.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.9802, allocations: 3.938 kB / 0.5233 GB, free: 93.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002783/0.9805, allocations: 63.88 kB / 0.5233 GB, free: 93.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009731/0.9903, allocations: 2.758 MB / 0.526 GB, free: 90.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.9903, allocations: 8.031 kB / 0.526 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/0.9919, allocations: 361.7 kB / 0.5264 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.994, allocations: 336.3 kB / 0.5267 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006412/1, allocations: 1.785 MB / 0.5284 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/1.001, allocations: 158.3 kB / 0.5286 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009322/1.002, allocations: 215.8 kB / 0.5288 GB, free: 87.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008326/1.01, allocations: 2.707 MB / 0.5314 GB, free: 84.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/1.01, allocations: 3.906 kB / 0.5314 GB, free: 84.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004008/1.011, allocations: 92 kB / 0.5315 GB, free: 84.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/1.011, allocations: 88.05 kB / 0.5316 GB, free: 84.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007422/1.018, allocations: 2.206 MB / 0.5338 GB, free: 82.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02282/1.041, allocations: 8.394 MB / 0.542 GB, free: 73.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004883/1.046, allocations: 1.674 MB / 0.5436 GB, free: 72.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004921/1.047, allocations: 146.8 kB / 0.5437 GB, free: 71.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/1.047, allocations: 47.5 kB / 0.5438 GB, free: 71.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 4.188e-06/1.047, allocations: 4 kB / 0.5438 GB, free: 71.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.02331/1.07, allocations: 6.676 MB / 0.5503 GB, free: 64.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/1.07, allocations: 68.72 kB / 0.5504 GB, free: 64.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/1.074, allocations: 1.885 MB / 0.5522 GB, free: 62.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003534/1.075, allocations: 49.7 kB / 0.5523 GB, free: 62.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008017/1.076, allocations: 1.019 MB / 0.5533 GB, free: 61.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006181/1.076, allocations: 469.1 kB / 0.5537 GB, free: 61.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/1.076, allocations: 28 kB / 0.5537 GB, free: 61.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/1.076, allocations: 374.8 kB / 0.5541 GB, free: 61.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002183/1.079, allocations: 0.7652 MB / 0.5548 GB, free: 60.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/1.081, allocations: 1.017 MB / 0.5558 GB, free: 59.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002512/1.084, allocations: 0.9082 MB / 0.5567 GB, free: 58.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/1.084, allocations: 4 kB / 0.5567 GB, free: 58.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008273/1.092, allocations: 2.692 MB / 0.5593 GB, free: 55.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/1.092, allocations: 8.938 kB / 0.5594 GB, free: 55.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.141e-05/1.092, allocations: 8 kB / 0.5594 GB, free: 55.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00367/1.096, allocations: 0.8502 MB / 0.5602 GB, free: 54.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/1.098, allocations: 263.6 kB / 0.5604 GB, free: 54.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/1.117, allocations: 9.652 MB / 0.5699 GB, free: 44.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/1.119, allocations: 99.95 kB / 0.57 GB, free: 44.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/1.12, allocations: 59.98 kB / 0.57 GB, free: 44.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (123): * Single equations (assignments): 119 * 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 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002104/1.122, allocations: 0.7394 MB / 0.5707 GB, free: 43.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007597/1.122, allocations: 209.5 kB / 0.5709 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007605/1.13, allocations: 2.587 MB / 0.5735 GB, free: 40.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/1.13, allocations: 12 kB / 0.5735 GB, free: 40.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.13, allocations: 12 kB / 0.5735 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.981e-05/1.13, allocations: 7.969 kB / 0.5735 GB, free: 40.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/1.145, allocations: 5.117 MB / 0.5785 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-05/1.145, allocations: 4 kB / 0.5785 GB, free: 35.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.147, allocations: 223.8 kB / 0.5787 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003257/1.15, allocations: 0.7062 MB / 0.5794 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003192/1.151, allocations: 35.98 kB / 0.5794 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/1.164, allocations: 8.689 MB / 0.5879 GB, free: 25.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.768e-06/1.164, allocations: 4.062 kB / 0.5879 GB, free: 25.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009926/1.174, allocations: 3.724 MB / 0.5916 GB, free: 21.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/1.176, allocations: 478.4 kB / 0.592 GB, free: 21.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006866/1.177, allocations: 35.95 kB / 0.5921 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.179, allocations: 95.89 kB / 0.5921 GB, free: 21.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005188/1.179, allocations: 113.1 kB / 0.5923 GB, free: 20.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001581/1.18, allocations: 39.98 kB / 0.5923 GB, free: 20.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003272/1.183, allocations: 1.469 MB / 0.5937 GB, free: 19.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.183, allocations: 8 kB / 0.5937 GB, free: 19.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003262/1.186, allocations: 0.5937 MB / 0.5943 GB, free: 18.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (94): * Single equations (assignments): 88 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01178/1.198, allocations: 5.141 MB / 0.5993 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007177/1.205, allocations: 2.514 MB / 0.6018 GB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.205, allocations: 1.25 kB / 0.6018 GB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004432/1.21, allocations: 1.737 MB / 0.6035 GB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003445/1.213, allocations: 415.2 kB / 0.6039 GB, free: 8.867 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0467/1.26, allocations: 21.24 MB / 0.6246 GB, free: 2.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002675/1.263, allocations: 1.998 MB / 0.6266 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002361/1.265, allocations: 0.9641 MB / 0.6275 GB, free: 15.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/1.265, allocations: 0 / 0.6275 GB, free: 15.59 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_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:449: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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:426:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:486: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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:463:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFMU.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_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.o] Error 1