Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",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.00217/0.00217, 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.185/2.185, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001092/0.001091, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.963e-05/3.971e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4477/0.5547, allocations: 91.98 MB / 461.2 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003796/0.5552, allocations: 86.08 kB / 461.3 MB, free: 1.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3804/0.9356, allocations: 74.23 MB / 0.5229 GB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.9356, allocations: 4 kB / 0.5229 GB, free: 8.289 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003763/0.936, allocations: 83.88 kB / 0.523 GB, free: 8.207 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.01153/0.9476, allocations: 2.876 MB / 0.5258 GB, free: 5.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.9476, allocations: 8.031 kB / 0.5258 GB, free: 5.262 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001836/0.9495, allocations: 433.6 kB / 0.5262 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/0.9518, allocations: 391.8 kB / 0.5266 GB, free: 4.441 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008224/0.9601, allocations: 2.174 MB / 0.5287 GB, free: 2.211 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003744/0.9605, allocations: 217.8 kB / 0.529 GB, free: 1.996 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/0.9619, allocations: 284 kB / 0.5292 GB, free: 1.719 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2981/1.26, allocations: 4.059 MB / 0.5332 GB, free: 82.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/1.26, allocations: 0 / 0.5332 GB, free: 82.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005109/1.261, allocations: 129.3 kB / 0.5333 GB, free: 82.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/1.261, allocations: 134.3 kB / 0.5334 GB, free: 82.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/1.272, allocations: 3.116 MB / 0.5365 GB, free: 82.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03411/1.306, allocations: 11.02 MB / 0.5472 GB, free: 80.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004236/1.31, allocations: 2.584 MB / 0.5498 GB, free: 79.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004042/1.314, allocations: 1.458 MB / 0.5512 GB, free: 79.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000501/1.315, allocations: 141.9 kB / 0.5513 GB, free: 79.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/1.315, allocations: 48.88 kB / 0.5514 GB, free: 79.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 4.719e-06/1.315, allocations: 0 / 0.5514 GB, free: 79.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.01213/1.327, allocations: 4.373 MB / 0.5556 GB, free: 78.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/1.327, allocations: 100.4 kB / 0.5557 GB, free: 78.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/1.331, allocations: 1.698 MB / 0.5574 GB, free: 78.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003146/1.331, allocations: 50.67 kB / 0.5574 GB, free: 78.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008532/1.332, allocations: 1.248 MB / 0.5587 GB, free: 77.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005113/1.332, allocations: 466 kB / 0.5591 GB, free: 77.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/1.333, allocations: 26.09 kB / 0.5591 GB, free: 77.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/1.333, allocations: 372 kB / 0.5595 GB, free: 77.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/1.334, allocations: 0.7768 MB / 0.5602 GB, free: 77.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/1.336, allocations: 1.131 MB / 0.5613 GB, free: 77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001994/1.338, allocations: 0.9806 MB / 0.5623 GB, free: 76.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/1.338, allocations: 3.125 kB / 0.5623 GB, free: 76.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005357/1.344, allocations: 2.326 MB / 0.5646 GB, free: 76.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/1.344, allocations: 11.09 kB / 0.5646 GB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.874e-05/1.344, allocations: 15 kB / 0.5646 GB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/1.345, allocations: 359.1 kB / 0.5649 GB, free: 76.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/1.348, allocations: 340.1 kB / 0.5653 GB, free: 76.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006975/1.355, allocations: 4.041 MB / 0.5692 GB, free: 73.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/1.357, allocations: 93.11 kB / 0.5693 GB, free: 73.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/1.358, allocations: 59.19 kB / 0.5694 GB, free: 73.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003798/1.358, allocations: 187.7 kB / 0.5695 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004879/1.358, allocations: 194.1 kB / 0.5697 GB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004979/1.363, allocations: 2.111 MB / 0.5718 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/1.364, allocations: 13.41 kB / 0.5718 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/1.364, allocations: 3.969 kB / 0.5718 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/1.364, allocations: 6.984 kB / 0.5718 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/1.376, allocations: 5.168 MB / 0.5769 GB, free: 70.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-05/1.376, allocations: 7.141 kB / 0.5769 GB, free: 70.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.378, allocations: 227 kB / 0.5771 GB, free: 70.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001427/1.379, allocations: 340.7 kB / 0.5774 GB, free: 70.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/1.38, allocations: 35.2 kB / 0.5774 GB, free: 70.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006744/1.386, allocations: 3.953 MB / 0.5813 GB, free: 67.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.386, allocations: 3.531 kB / 0.5813 GB, free: 67.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007064/1.393, allocations: 3.275 MB / 0.5845 GB, free: 66.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.395, allocations: 480.6 kB / 0.585 GB, free: 65.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/1.396, allocations: 26.66 kB / 0.585 GB, free: 65.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.398, allocations: 107.8 kB / 0.5851 GB, free: 65.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/1.398, allocations: 90.94 kB / 0.5852 GB, free: 65.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/1.398, allocations: 46.03 kB / 0.5852 GB, free: 65.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002888/1.401, allocations: 1.316 MB / 0.5865 GB, free: 65.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.401, allocations: 0 / 0.5865 GB, free: 65.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002974/1.404, allocations: 0.5761 MB / 0.5871 GB, free: 65.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00796/1.412, allocations: 4.399 MB / 0.5914 GB, free: 62.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005046/1.417, allocations: 2.237 MB / 0.5935 GB, free: 61.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.417, allocations: 0 / 0.5935 GB, free: 61.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003009/1.42, allocations: 1.292 MB / 0.5948 GB, free: 61.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/1.424, allocations: 480.8 kB / 0.5953 GB, free: 61.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/1.441, allocations: 5.475 MB / 0.6006 GB, free: 59.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002662/1.443, allocations: 2.419 MB / 0.603 GB, free: 58.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/1.446, allocations: 1.067 MB / 0.604 GB, free: 57.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/1.446, allocations: 2.625 kB / 0.604 GB, free: 57.18 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_Transformers_TransformerTestbenchCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:134: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_Transformers_TransformerTestbenchFunctions.cpp:111:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:171: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_Transformers_TransformerTestbenchFunctions.cpp:148:12: note: 'D_24tmpVar16_' declared here double D_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFMU.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_Transformers_TransformerTestbenchCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o] Error 1