Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",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.002218/0.002218, 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.174/2.174, 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.001188/0.001187, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.246e-05/3.262e-05, allocations: 8 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 47.57 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5863/0.6895, allocations: 167.2 MB / 0.5238 GB, free: 7.066 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003571/0.6899, allocations: 102.5 kB / 0.5239 GB, free: 7.012 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.267/5.957, allocations: 0.858 GB / 1.382 GB, free: 19.44 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.374e-06/5.957, allocations: 0.875 kB / 1.382 GB, free: 19.44 MB / 490.8 MB Notification: Performance of Transformations before backend: time 0.00302/5.96, allocations: 477.4 kB / 1.382 GB, free: 19.44 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.11/6.07, allocations: 19.58 MB / 1.401 GB, free: 15.89 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/6.07, allocations: 10.97 kB / 1.401 GB, free: 15.89 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01627/6.086, allocations: 2.974 MB / 1.404 GB, free: 15.71 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08546/6.172, allocations: 10.32 MB / 1.414 GB, free: 14.58 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06032/6.232, allocations: 15.82 MB / 1.43 GB, free: 12.82 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002894/6.235, allocations: 1.546 MB / 1.431 GB, free: 12.77 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01174/6.247, allocations: 2.014 MB / 1.433 GB, free: 12.76 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1262/6.373, allocations: 35.51 MB / 1.468 GB, free: 10.39 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001321/6.375, allocations: 29.02 kB / 1.468 GB, free: 10.38 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01029/6.385, allocations: 0.8646 MB / 1.469 GB, free: 10.38 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002384/6.387, allocations: 1.386 MB / 1.47 GB, free: 10.34 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1007/6.488, allocations: 32.12 MB / 1.502 GB, free: 4.582 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8514/7.34, allocations: 113 MB / 1.612 GB, free: 35.01 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07314/7.413, allocations: 44 MB / 1.655 GB, free: 31.23 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04374/7.457, allocations: 16.32 MB / 1.671 GB, free: 31.07 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1508/7.607, allocations: 50.37 MB / 1.72 GB, free: 24.06 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/7.608, allocations: 175.8 kB / 1.72 GB, free: 23.92 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=1576): time 2.131e-05/7.608, allocations: 2.906 kB / 1.72 GB, free: 23.92 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1588): time 0.2295/7.837, allocations: 59.6 MB / 1.778 GB, free: 9.965 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005949/7.838, allocations: 220.9 kB / 1.779 GB, free: 9.734 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0357/7.874, allocations: 5.919 MB / 1.784 GB, free: 4.469 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.005843/7.88, allocations: 249.7 kB / 1.785 GB, free: 4.219 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.592/8.472, allocations: 6.914 MB / 1.791 GB, free: 86.84 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.01029/8.482, allocations: 5.198 MB / 1.796 GB, free: 83.99 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004385/8.486, allocations: 257.1 kB / 1.797 GB, free: 83.99 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.002404/8.489, allocations: 0.9089 MB / 1.798 GB, free: 83.64 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03051/8.519, allocations: 10.16 MB / 1.808 GB, free: 83.61 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03308/8.553, allocations: 12.36 MB / 1.82 GB, free: 81.64 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03438/8.587, allocations: 12.11 MB / 1.831 GB, free: 81.46 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/8.587, allocations: 20.03 kB / 1.831 GB, free: 81.46 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.09237/8.68, allocations: 30.82 MB / 1.862 GB, free: 80.61 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-05/8.68, allocations: 26.22 kB / 1.862 GB, free: 80.61 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/8.68, allocations: 53.62 kB / 1.862 GB, free: 80.61 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04874/8.729, allocations: 14.61 MB / 1.876 GB, free: 80.08 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01812/8.747, allocations: 2.086 MB / 1.878 GB, free: 80.08 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07013/8.817, allocations: 35.64 MB / 1.913 GB, free: 62.66 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01693/8.834, allocations: 0.6246 MB / 1.913 GB, free: 62.45 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00465/8.839, allocations: 0.5262 MB / 1.914 GB, free: 62.34 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1018 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.008306/8.847, allocations: 0.7693 MB / 1.915 GB, free: 61.81 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006111/8.853, allocations: 1.012 MB / 1.916 GB, free: 61.27 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09887/8.952, allocations: 31.91 MB / 1.947 GB, free: 42.76 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000674/8.953, allocations: 387.8 kB / 1.947 GB, free: 42.42 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-05/8.953, allocations: 12 kB / 1.947 GB, free: 42.41 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003677/8.953, allocations: 65.95 kB / 1.947 GB, free: 42.41 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7427/9.696, allocations: 60.24 MB / 2.006 GB, free: 74.25 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002621/9.696, allocations: 5.391 kB / 2.006 GB, free: 74.25 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01511/9.712, allocations: 1.615 MB / 2.008 GB, free: 74.25 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05267/9.764, allocations: 14.8 MB / 2.022 GB, free: 73.71 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004763/9.769, allocations: 338.7 kB / 2.022 GB, free: 73.71 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07971/9.849, allocations: 39.87 MB / 2.061 GB, free: 61.8 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/9.849, allocations: 6.094 kB / 2.061 GB, free: 61.8 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1336/9.983, allocations: 47.38 MB / 2.108 GB, free: 54.51 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0152/9.998, allocations: 3.478 MB / 2.111 GB, free: 53.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007001/10, allocations: 247 kB / 2.111 GB, free: 52.97 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01659/10.02, allocations: 0.6265 MB / 2.112 GB, free: 52.8 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006806/10.03, allocations: 1.174 MB / 2.113 GB, free: 52.55 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004485/10.03, allocations: 427 kB / 2.113 GB, free: 52.45 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01338/10.05, allocations: 4.528 MB / 2.118 GB, free: 50.75 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.293e-06/10.05, allocations: 0.5625 kB / 2.118 GB, free: 50.75 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02584/10.07, allocations: 3.897 MB / 2.122 GB, free: 50.34 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (820): * Single equations (assignments): 779 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.1383/10.21, allocations: 49.42 MB / 2.17 GB, free: 12.69 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.5865/10.8, allocations: 28.36 MB / 2.198 GB, free: 89.94 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/10.8, allocations: 0 / 2.198 GB, free: 89.94 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.04973/10.85, allocations: 14.94 MB / 2.212 GB, free: 88.74 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02324/10.87, allocations: 2.327 MB / 2.214 GB, free: 88.71 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1632/11.03, allocations: 46.38 MB / 2.26 GB, free: 82.43 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03344/11.07, allocations: 13.47 MB / 2.273 GB, free: 81.11 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0227/11.09, allocations: 8.006 MB / 2.281 GB, free: 81.11 MB / 0.5574 GB Notification: Performance of SimCode: time 2.003e-06/11.09, allocations: 3.281 kB / 2.281 GB, free: 81.11 MB / 0.5574 GB 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFMU.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_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o] Error 1