Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.001505/0.001505, allocations: 182.5 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.935/1.935, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001135/0.001135, allocations: 88.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004005, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3324, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.02066/0.3531, allocations: 13.47 MB / 388.1 MB, free: 35.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.3663, allocations: 5.506 MB / 393.6 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003741/0.3701, allocations: 91.56 kB / 393.7 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00477/0.3749, allocations: 1.049 MB / 394.7 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006702/0.3817, allocations: 1.511 MB / 396.3 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003514/0.3852, allocations: 0.709 MB / 397 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008953/0.3942, allocations: 4.179 MB / 401.1 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006122/0.4004, allocations: 3.466 MB / 404.6 MB, free: 18.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003721/0.4042, allocations: 1.938 MB / 406.6 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004585/0.4088, allocations: 2.327 MB / 408.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.4103, allocations: 328 kB / 409.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.4134, allocations: 0.5309 MB / 409.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002093/0.4155, allocations: 1.246 MB / 411 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.4177, allocations: 1.14 MB / 412.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.4288, allocations: 8.516 MB / 420.6 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.4288, allocations: 4 kB / 420.6 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4289, allocations: 0 / 420.6 MB, free: 2.684 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003179/0.4292, allocations: 0 / 420.6 MB, free: 2.684 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02104/0.4502, allocations: 5.522 MB / 426.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.4503, allocations: 8.031 kB / 426.2 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002705/0.453, allocations: 0.6787 MB / 426.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008544/0.4616, allocations: 1.063 MB / 427.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.4724, allocations: 3.268 MB / 431.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005892/0.473, allocations: 365.7 kB / 431.5 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.475, allocations: 479.9 kB / 432 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02658/0.5016, allocations: 6.806 MB / 438.8 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003294/0.502, allocations: 4 kB / 438.8 MB, free: 260 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002403/0.5045, allocations: 200 kB / 439 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007206/0.5052, allocations: 237.8 kB / 439.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02337/0.5287, allocations: 5.918 MB / 445.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05963/0.5883, allocations: 20.99 MB / 466.1 MB, free: 4.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01671/0.6051, allocations: 9.959 MB / 476.1 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/0.6222, allocations: 5.436 MB / 481.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.129e-05/0.6224, allocations: 64.5 kB / 481.6 MB, free: 3.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=227): time 5.791e-06/0.6224, allocations: 0 / 481.6 MB, free: 3.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=234): time 0.03381/0.6562, allocations: 9.83 MB / 491.4 MB, free: 9.836 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.6563, allocations: 77.41 kB / 491.5 MB, free: 9.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007427/0.6638, allocations: 2.917 MB / 494.4 MB, free: 6.816 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004844/0.6643, allocations: 65.7 kB / 494.5 MB, free: 6.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/0.6665, allocations: 1.999 MB / 496.5 MB, free: 4.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.6678, allocations: 0.7816 MB / 497.3 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002824/0.6681, allocations: 56 kB / 497.3 MB, free: 3.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002889/0.6684, allocations: 420.1 kB / 497.7 MB, free: 3.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/0.6725, allocations: 1.325 MB / 499.1 MB, free: 2.133 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2777/0.9503, allocations: 1.926 MB / 0.4892 GB, free: 102.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004608/0.955, allocations: 1.631 MB / 0.4908 GB, free: 102.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.181e-05/0.955, allocations: 7.906 kB / 0.4908 GB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.0124/0.9674, allocations: 4.116 MB / 0.4949 GB, free: 100.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.9675, allocations: 12.38 kB / 0.4949 GB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/0.9676, allocations: 17.25 kB / 0.4949 GB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004839/0.9724, allocations: 0.7706 MB / 0.4957 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004725/0.9772, allocations: 0.5847 MB / 0.4962 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01507/0.9923, allocations: 10.21 MB / 0.5062 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/0.9958, allocations: 110.5 kB / 0.5063 GB, free: 92.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005429/0.9964, allocations: 102.7 kB / 0.5064 GB, free: 92.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 279 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004208/1.001, allocations: 1.614 MB / 0.508 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009775/1.002, allocations: 322.4 kB / 0.5083 GB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.012, allocations: 3.999 MB / 0.5122 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/1.012, allocations: 22.06 kB / 0.5122 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/1.012, allocations: 18.95 kB / 0.5122 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.772e-05/1.012, allocations: 15.81 kB / 0.5122 GB, free: 90.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/1.035, allocations: 8.716 MB / 0.5207 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.321e-05/1.035, allocations: 0 / 0.5207 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003204/1.038, allocations: 363.8 kB / 0.5211 GB, free: 81.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005367/1.044, allocations: 0.9342 MB / 0.522 GB, free: 80.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004681/1.044, allocations: 65.28 kB / 0.5221 GB, free: 80.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.065, allocations: 14.65 MB / 0.5364 GB, free: 65.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.065, allocations: 96 / 0.5364 GB, free: 65.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/1.08, allocations: 6.019 MB / 0.5423 GB, free: 59.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002331/1.082, allocations: 0.6846 MB / 0.5429 GB, free: 58.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009196/1.083, allocations: 59.69 kB / 0.543 GB, free: 58.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002977/1.086, allocations: 131.8 kB / 0.5431 GB, free: 58.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008281/1.087, allocations: 189.9 kB / 0.5433 GB, free: 58.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002515/1.087, allocations: 63.98 kB / 0.5433 GB, free: 58.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004596/1.092, allocations: 2.019 MB / 0.5453 GB, free: 56.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.22e-07/1.092, allocations: 0 / 0.5453 GB, free: 56.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005004/1.097, allocations: 0.9398 MB / 0.5462 GB, free: 55.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01567/1.112, allocations: 7.167 MB / 0.5532 GB, free: 48.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009745/1.122, allocations: 3.985 MB / 0.5571 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.122, allocations: 0 / 0.5571 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006543/1.129, allocations: 2.698 MB / 0.5598 GB, free: 41.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006244/1.135, allocations: 0.841 MB / 0.5606 GB, free: 40.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08542/1.221, allocations: 40.56 MB / 0.6002 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005787/1.226, allocations: 3.425 MB / 0.6035 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004497/1.231, allocations: 1.839 MB / 0.6053 GB, free: 9.039 MB / 394.7 MB Notification: Performance of SimCode: time 9.62e-07/1.231, allocations: 4 kB / 0.6053 GB, free: 9.035 MB / 394.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.cpp:3180:28: error: use of undeclared identifier 'tmp50' _transformerData_P_C1_ = tmp50; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.cpp:3181:28: error: use of undeclared identifier 'tmp51' _transformerData_P_C2_ = tmp51; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_TransformerCalcHelperMain.o] Error 1