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.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.002143/0.002148, allocations: 188 kB / 16.4 MB, free: 5.625 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.028/2.028, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001179/0.001179, allocations: 98.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003951, allocations: 12 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09922, allocations: 47.57 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.3119/0.4112, allocations: 32.06 MB / 406.7 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02867/0.4399, allocations: 10.18 MB / 416.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009202/0.4492, allocations: 249.3 kB / 417.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01056/0.4598, allocations: 2.103 MB / 419.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0188/0.4786, allocations: 3.672 MB / 422.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0102/0.4889, allocations: 1.807 MB / 424.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02572/0.5146, allocations: 10.31 MB / 435 MB, free: 1.012 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05457/0.5692, allocations: 19.78 MB / 454.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0122/0.5815, allocations: 4.676 MB / 459.5 MB, free: 8.445 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01341/0.5949, allocations: 5.416 MB / 464.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003792/0.5987, allocations: 0.7695 MB / 465.7 MB, free: 2.238 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007198/0.606, allocations: 1.085 MB / 466.8 MB, free: 1.152 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005312/0.6113, allocations: 2.539 MB / 469.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005863/0.6172, allocations: 2.597 MB / 471.9 MB, free: 12 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03552/0.6528, allocations: 22.05 MB / 493.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.6528, allocations: 0 / 493.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6529, allocations: 0 / 493.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000781/0.6537, allocations: 0 / 493.9 MB, free: 5.891 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05389/0.7076, allocations: 12.94 MB / 0.495 GB, free: 8.836 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.7076, allocations: 8.031 kB / 0.495 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007374/0.715, allocations: 1.794 MB / 0.4968 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07732/0.7924, allocations: 9.04 MB / 0.5056 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0234/0.8158, allocations: 7.383 MB / 0.5128 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001455/0.8173, allocations: 0.951 MB / 0.5137 GB, free: 5.539 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005744/0.8231, allocations: 1.25 MB / 0.5149 GB, free: 4.289 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06808/0.8912, allocations: 19.95 MB / 0.5344 GB, free: 268 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006132/0.8919, allocations: 27.88 kB / 0.5345 GB, free: 240 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.5471/1.439, allocations: 0.5051 MB / 0.5349 GB, free: 109.6 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001802/1.441, allocations: 0.7367 MB / 0.5357 GB, free: 109.6 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06301/1.504, allocations: 18.88 MB / 0.5541 GB, free: 103.8 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/1.645, allocations: 63.53 MB / 0.6162 GB, free: 47.82 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05378/1.699, allocations: 56.9 MB / 0.6717 GB, free: 24 kB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0366/1.735, allocations: 11.53 MB / 0.683 GB, free: 4.469 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.103e-05/1.736, allocations: 77.33 kB / 0.6831 GB, free: 4.383 MB / 442.8 MB Notification: Performance of pre-optimization done (n=359): time 6.853e-06/1.736, allocations: 0 / 0.6831 GB, free: 4.383 MB / 442.8 MB Notification: Performance of matching and sorting (n=399): time 0.06644/1.802, allocations: 17.55 MB / 0.7002 GB, free: 2.707 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/1.802, allocations: 102.5 kB / 0.7003 GB, free: 2.594 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3164/2.119, allocations: 5.368 MB / 0.7055 GB, free: 144.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008257/2.119, allocations: 92.55 kB / 0.7056 GB, free: 144.3 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004953/2.124, allocations: 5.659 MB / 0.7111 GB, free: 141.3 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001996/2.126, allocations: 1.404 MB / 0.7125 GB, free: 140.2 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007729/2.127, allocations: 155.3 kB / 0.7127 GB, free: 140.1 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005551/2.128, allocations: 0.6201 MB / 0.7133 GB, free: 139.7 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008959/2.137, allocations: 3.079 MB / 0.7163 GB, free: 138.5 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01209/2.149, allocations: 6.701 MB / 0.7228 GB, free: 132.6 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.161, allocations: 4.59 MB / 0.7273 GB, free: 130.6 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000225/2.162, allocations: 35.62 kB / 0.7273 GB, free: 130.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.0289/2.19, allocations: 10.54 MB / 0.7376 GB, free: 126.3 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/2.191, allocations: 58.22 kB / 0.7377 GB, free: 126.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/2.191, allocations: 125.7 kB / 0.7378 GB, free: 126.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004249/2.195, allocations: 0.981 MB / 0.7388 GB, free: 126 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01262/2.208, allocations: 1.823 MB / 0.7406 GB, free: 125.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.017/2.225, allocations: 9.744 MB / 0.7501 GB, free: 119.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009038/2.234, allocations: 444.6 kB / 0.7505 GB, free: 119.1 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001697/2.236, allocations: 418.9 kB / 0.7509 GB, free: 119 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (939): * Single equations (assignments): 934 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01126/2.247, allocations: 4.459 MB / 0.7552 GB, free: 116.8 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/2.249, allocations: 0.5468 MB / 0.7558 GB, free: 116.6 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01844/2.267, allocations: 6.605 MB / 0.7622 GB, free: 112.6 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.405e-05/2.267, allocations: 40 kB / 0.7623 GB, free: 112.5 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/2.267, allocations: 8 kB / 0.7623 GB, free: 112.5 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.267, allocations: 18.56 kB / 0.7623 GB, free: 112.5 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04236/2.31, allocations: 16.1 MB / 0.778 GB, free: 98.71 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.607e-05/2.31, allocations: 7.844 kB / 0.778 GB, free: 98.7 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006802/2.316, allocations: 0.7766 MB / 0.7788 GB, free: 97.93 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003651/2.32, allocations: 0.7845 MB / 0.7796 GB, free: 97.12 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007473/2.321, allocations: 87.95 kB / 0.7796 GB, free: 97.04 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/2.335, allocations: 8.848 MB / 0.7883 GB, free: 87.8 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/2.336, allocations: 4 kB / 0.7883 GB, free: 87.79 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02332/2.359, allocations: 10.05 MB / 0.7981 GB, free: 77.6 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00386/2.363, allocations: 1.111 MB / 0.7992 GB, free: 76.46 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001765/2.365, allocations: 75.98 kB / 0.7992 GB, free: 76.39 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005233/2.37, allocations: 227.8 kB / 0.7995 GB, free: 76.16 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001204/2.371, allocations: 270.8 kB / 0.7997 GB, free: 75.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004188/2.371, allocations: 116 kB / 0.7998 GB, free: 75.79 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008353/2.38, allocations: 3.532 MB / 0.8033 GB, free: 72.28 MB / 458.8 MB Notification: Performance of sort global known variables: time 7.62e-07/2.38, allocations: 1.531 kB / 0.8033 GB, free: 72.28 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01136/2.391, allocations: 1.989 MB / 0.8052 GB, free: 70.29 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 373 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02642/2.418, allocations: 11.31 MB / 0.8163 GB, free: 58.84 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01922/2.437, allocations: 8.081 MB / 0.8242 GB, free: 50.68 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.437, allocations: 1.531 kB / 0.8242 GB, free: 50.68 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008861/2.446, allocations: 3.578 MB / 0.8277 GB, free: 47.03 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009353/2.455, allocations: 1.186 MB / 0.8288 GB, free: 45.86 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5137/2.969, allocations: 147.9 MB / 0.9732 GB, free: 47.96 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01577/2.985, allocations: 7.569 MB / 0.9806 GB, free: 45.34 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01025/2.995, allocations: 4.562 MB / 0.9851 GB, free: 41.49 MB / 458.8 MB Notification: Performance of SimCode: time 1.533e-06/2.995, allocations: 0 / 0.9851 GB, free: 41.49 MB / 458.8 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:112:42: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp98 = 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_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:112:85: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp98 = 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_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFMU.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_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1