Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_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.001503/0.001507, allocations: 184.4 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.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001117/0.001117, allocations: 104.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003879, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3421, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01545/0.3576, allocations: 10.37 MB / 385 MB, free: 37.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.3681, allocations: 4.143 MB / 389.1 MB, free: 34.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002291/0.3704, allocations: 61.03 kB / 389.2 MB, free: 34.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003076/0.3735, allocations: 0.798 MB / 390 MB, free: 33.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004706/0.3782, allocations: 0.9886 MB / 391 MB, free: 32.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.3798, allocations: 323.6 kB / 391.3 MB, free: 32.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005871/0.3857, allocations: 2.968 MB / 394.3 MB, free: 29.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003629/0.3893, allocations: 2.526 MB / 396.8 MB, free: 26.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.3918, allocations: 1.444 MB / 398.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.3952, allocations: 1.809 MB / 400.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008283/0.3961, allocations: 244 kB / 400.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.3976, allocations: 307.9 kB / 400.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001244/0.3989, allocations: 1.083 MB / 401.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.4001, allocations: 0.8394 MB / 402.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00738/0.4075, allocations: 5.952 MB / 408.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4075, allocations: 0 / 408.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4076, allocations: 0 / 408.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002138/0.4078, allocations: 0 / 408.5 MB, free: 14.87 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0127/0.4205, allocations: 3.974 MB / 412.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.4206, allocations: 8.031 kB / 412.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001714/0.4223, allocations: 0.4979 MB / 412.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002051/0.4244, allocations: 0.4947 MB / 413.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006342/0.4307, allocations: 2.31 MB / 415.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/0.431, allocations: 267 kB / 416 MB, free: 7.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/0.4321, allocations: 367.9 kB / 416.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.4455, allocations: 4.974 MB / 421.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.4457, allocations: 4 kB / 421.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005146/0.4462, allocations: 148 kB / 421.5 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002271/0.4464, allocations: 183 kB / 421.7 MB, free: 1.465 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01402/0.4605, allocations: 4.291 MB / 426 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04263/0.5032, allocations: 14.95 MB / 440.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008081/0.5113, allocations: 4.2 MB / 445.1 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005079/0.5118, allocations: 127.1 kB / 445.2 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.804e-05/0.5119, allocations: 60.55 kB / 445.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=198): time 7.164e-06/0.5119, allocations: 3.984 kB / 445.3 MB, free: 9.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=218): time 0.03732/0.5493, allocations: 10.32 MB / 455.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/0.5494, allocations: 77.36 kB / 455.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005969/0.5554, allocations: 2.451 MB / 458.2 MB, free: 12.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005155/0.5559, allocations: 61.7 kB / 458.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/0.5576, allocations: 1.502 MB / 459.7 MB, free: 10.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00119/0.5588, allocations: 0.7238 MB / 460.4 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.5591, allocations: 48 kB / 460.5 MB, free: 9.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003031/0.5594, allocations: 407.4 kB / 460.9 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003909/0.5633, allocations: 1.316 MB / 462.2 MB, free: 8.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004417/0.5678, allocations: 1.79 MB / 464 MB, free: 6.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004511/0.5723, allocations: 1.575 MB / 465.6 MB, free: 4.496 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-05/0.5724, allocations: 4 kB / 465.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01215/0.5845, allocations: 3.933 MB / 469.5 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.5846, allocations: 8 kB / 469.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.209e-05/0.5847, allocations: 19.98 kB / 469.5 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005271/0.59, allocations: 0.8753 MB / 470.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004377/0.5944, allocations: 0.5265 MB / 470.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0173/0.6117, allocations: 8.945 MB / 479.9 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003425/0.6152, allocations: 127.8 kB / 480 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005226/0.6157, allocations: 87.98 kB / 480.1 MB, free: 5.539 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003625/0.6194, allocations: 1.225 MB / 481.3 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.6204, allocations: 272.7 kB / 481.6 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/0.6319, allocations: 3.765 MB / 485.3 MB, free: 252 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-05/0.632, allocations: 20 kB / 485.4 MB, free: 232 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.002e-05/0.632, allocations: 8 kB / 485.4 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.915e-05/0.6321, allocations: 11.95 kB / 485.4 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02566/0.6577, allocations: 8.095 MB / 493.5 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.924e-05/0.6578, allocations: 4 kB / 493.5 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003541/0.6613, allocations: 383.6 kB / 493.9 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005901/0.6673, allocations: 0.9359 MB / 494.8 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004888/0.6678, allocations: 51.97 kB / 494.8 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2971/0.9649, allocations: 10.42 MB / 0.4934 GB, free: 103 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.965, allocations: 3.156 kB / 0.4934 GB, free: 103 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/0.9798, allocations: 5.793 MB / 0.4991 GB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/0.9822, allocations: 0.6333 MB / 0.4997 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007999/0.9831, allocations: 51.86 kB / 0.4997 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002644/0.9857, allocations: 130.3 kB / 0.4999 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007105/0.9865, allocations: 182.6 kB / 0.5 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/0.9867, allocations: 59.95 kB / 0.5001 GB, free: 100.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004074/0.9908, allocations: 1.685 MB / 0.5017 GB, free: 99.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.623e-06/0.9908, allocations: 3.844 kB / 0.5018 GB, free: 99.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00426/0.9951, allocations: 0.7937 MB / 0.5025 GB, free: 99.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (175): * Single equations (assignments): 170 * 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 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01578/1.011, allocations: 7.119 MB / 0.5095 GB, free: 96.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009667/1.021, allocations: 3.929 MB / 0.5133 GB, free: 92.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/1.021, allocations: 2.25 kB / 0.5133 GB, free: 92.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006309/1.027, allocations: 2.504 MB / 0.5158 GB, free: 89.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005853/1.033, allocations: 0.7306 MB / 0.5165 GB, free: 89.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06738/1.1, allocations: 32.85 MB / 0.5486 GB, free: 55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003723/1.104, allocations: 2.793 MB / 0.5513 GB, free: 52.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003235/1.107, allocations: 1.417 MB / 0.5527 GB, free: 50.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.714e-06/1.107, allocations: 0 / 0.5527 GB, free: 50.76 MB / 378.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_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.cpp:3180:28: error: use of undeclared identifier 'tmp37' _transformerData_P_C1_ = tmp37; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.cpp:3181:28: error: use of undeclared identifier 'tmp38' _transformerData_P_C2_ = tmp38; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_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_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_TransformerCalcHelperMain.o] Error 1