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.001575/0.001575, allocations: 182.4 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.322/2.322, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001123/0.001122, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.856e-05/4.878e-05, allocations: 11.98 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4648/0.6032, allocations: 109 MB / 478.2 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.6036, allocations: 92.62 kB / 478.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2543/0.8579, allocations: 52.03 MB / 0.5179 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8579, allocations: 0 / 0.5179 GB, free: 13.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003373/0.8583, allocations: 59.88 kB / 0.518 GB, free: 13.56 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00953/0.8678, allocations: 2.428 MB / 0.5203 GB, free: 11.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.8679, allocations: 12.03 kB / 0.5203 GB, free: 11.06 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00147/0.8694, allocations: 355.1 kB / 0.5207 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.8712, allocations: 332.3 kB / 0.521 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00678/0.878, allocations: 1.775 MB / 0.5227 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.8783, allocations: 152.1 kB / 0.5229 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009499/0.8792, allocations: 211.9 kB / 0.5231 GB, free: 8.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008838/0.8881, allocations: 2.621 MB / 0.5256 GB, free: 5.426 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/0.8883, allocations: 11.91 kB / 0.5256 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004375/0.8887, allocations: 87.98 kB / 0.5257 GB, free: 5.328 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/0.8889, allocations: 92.03 kB / 0.5258 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007292/0.8962, allocations: 2.066 MB / 0.5278 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2983/1.194, allocations: 8.387 MB / 0.536 GB, free: 97.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004753/1.199, allocations: 1.594 MB / 0.5376 GB, free: 97.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002743/1.202, allocations: 0.969 MB / 0.5385 GB, free: 97.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004695/1.203, allocations: 143.2 kB / 0.5387 GB, free: 97.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/1.203, allocations: 46.97 kB / 0.5387 GB, free: 97.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.18e-06/1.203, allocations: 0 / 0.5387 GB, free: 97.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=135): time 0.01655/1.219, allocations: 5.027 MB / 0.5436 GB, free: 96.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/1.219, allocations: 68.5 kB / 0.5437 GB, free: 96.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0049/1.224, allocations: 1.868 MB / 0.5455 GB, free: 96.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/1.225, allocations: 48.55 kB / 0.5456 GB, free: 96.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000925/1.226, allocations: 1.021 MB / 0.5466 GB, free: 95.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006706/1.226, allocations: 467.9 kB / 0.547 GB, free: 95.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/1.226, allocations: 28.03 kB / 0.547 GB, free: 95.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/1.227, allocations: 371.3 kB / 0.5474 GB, free: 95.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/1.228, allocations: 0.7096 MB / 0.5481 GB, free: 95.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/1.23, allocations: 0.9529 MB / 0.549 GB, free: 95.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/1.233, allocations: 0.8468 MB / 0.5498 GB, free: 95.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/1.233, allocations: 2.188 kB / 0.5498 GB, free: 95.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.007041/1.24, allocations: 2.574 MB / 0.5523 GB, free: 94.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/1.24, allocations: 7.812 kB / 0.5524 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/1.24, allocations: 7.812 kB / 0.5524 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/1.243, allocations: 0.833 MB / 0.5532 GB, free: 94.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/1.246, allocations: 282.4 kB / 0.5534 GB, free: 94.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01734/1.263, allocations: 9.287 MB / 0.5625 GB, free: 90.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/1.265, allocations: 100.9 kB / 0.5626 GB, free: 90.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/1.266, allocations: 53.22 kB / 0.5627 GB, free: 90.1 MB / 410.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 () * 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.0003618/1.266, allocations: 177.4 kB / 0.5628 GB, free: 89.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005149/1.267, allocations: 207.9 kB / 0.563 GB, free: 89.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00648/1.273, allocations: 2.464 MB / 0.5654 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/1.273, allocations: 15.22 kB / 0.5654 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/1.273, allocations: 8.875 kB / 0.5655 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/1.273, allocations: 7.797 kB / 0.5655 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/1.286, allocations: 5.02 MB / 0.5704 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/1.287, allocations: 0 / 0.5704 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001895/1.288, allocations: 225.7 kB / 0.5706 GB, free: 86.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00317/1.292, allocations: 0.7028 MB / 0.5713 GB, free: 86.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002116/1.292, allocations: 37.78 kB / 0.5713 GB, free: 86.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/1.305, allocations: 8.455 MB / 0.5796 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.305, allocations: 0 / 0.5796 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008508/1.313, allocations: 3.6 MB / 0.5831 GB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/1.315, allocations: 481.6 kB / 0.5835 GB, free: 78.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004407/1.315, allocations: 31.12 kB / 0.5836 GB, free: 78.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/1.317, allocations: 93 kB / 0.5837 GB, free: 78.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004048/1.318, allocations: 114 kB / 0.5838 GB, free: 78.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/1.318, allocations: 41.3 kB / 0.5838 GB, free: 78.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002998/1.321, allocations: 1.451 MB / 0.5852 GB, free: 78.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.353e-06/1.321, allocations: 0 / 0.5852 GB, free: 78.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003433/1.324, allocations: 0.5974 MB / 0.5858 GB, free: 78.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * 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.01061/1.335, allocations: 5.102 MB / 0.5908 GB, free: 75.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006158/1.341, allocations: 2.384 MB / 0.5931 GB, free: 74.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.341, allocations: 5.625 kB / 0.5931 GB, free: 74.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004302/1.346, allocations: 1.679 MB / 0.5948 GB, free: 73.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/1.349, allocations: 415.8 kB / 0.5952 GB, free: 73.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/1.363, allocations: 5.04 MB / 0.6001 GB, free: 70.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001915/1.365, allocations: 2.002 MB / 0.602 GB, free: 68.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001976/1.367, allocations: 0.9628 MB / 0.603 GB, free: 67.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.367, allocations: 0 / 0.603 GB, free: 67.93 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: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_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:426:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:486: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_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:463:12: note: 'D_24tmpVar16_' declared here double D_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