Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006349/0.006349, allocations: 170.4 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03779/0.03779, allocations: 8.796 MB / 24.65 MB, free: 4.113 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.2 MB / 250.7 MB, free: 6.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009734/0.0009732, allocations: 99.55 kB / 304 MB, free: 4.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003587, allocations: 12 kB / 367.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2723, allocations: 52.54 MB / 419.7 MB, free: 48.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1535/0.426, allocations: 131.5 MB / 0.5383 GB, free: 5.461 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.4263, allocations: 85.08 kB / 0.5384 GB, free: 5.379 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.068/1.494, allocations: 315.6 MB / 0.8466 GB, free: 39.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.527e-06/1.494, allocations: 0 / 0.8466 GB, free: 39.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007175/1.495, allocations: 203.8 kB / 0.8468 GB, free: 39.29 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.02855/1.523, allocations: 8.681 MB / 0.8552 GB, free: 30.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/1.524, allocations: 8.562 kB / 0.8552 GB, free: 30.51 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005637/1.529, allocations: 1.32 MB / 0.8565 GB, free: 29.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0219/1.551, allocations: 3.887 MB / 0.8603 GB, free: 25.28 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0181/1.569, allocations: 7.27 MB / 0.8674 GB, free: 17.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007561/1.57, allocations: 0.6544 MB / 0.8681 GB, free: 17.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003485/1.574, allocations: 0.867 MB / 0.8689 GB, free: 16.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03882/1.612, allocations: 14.67 MB / 0.8832 GB, free: 1.457 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004484/1.613, allocations: 19.89 kB / 0.8833 GB, free: 1.438 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00283/1.616, allocations: 387.9 kB / 0.8836 GB, free: 1.059 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008725/1.617, allocations: 0.6791 MB / 0.8843 GB, free: 388 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/1.648, allocations: 12.56 MB / 0.8966 GB, free: 3.816 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3669/2.014, allocations: 46.88 MB / 0.9423 GB, free: 52.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01595/2.03, allocations: 28.22 MB / 0.9699 GB, free: 27.11 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006686/2.031, allocations: 238.2 kB / 0.9701 GB, free: 26.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.091e-05/2.031, allocations: 75.34 kB / 0.9702 GB, free: 26.87 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 5.64e-06/2.031, allocations: 2.188 kB / 0.9702 GB, free: 26.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.03127/2.063, allocations: 14.28 MB / 0.9841 GB, free: 25.04 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/2.063, allocations: 97.02 kB / 0.9842 GB, free: 24.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/2.068, allocations: 3.059 MB / 0.9872 GB, free: 24.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006909/2.069, allocations: 93.17 kB / 0.9873 GB, free: 24.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/2.071, allocations: 3.941 MB / 0.9912 GB, free: 21.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001636/2.073, allocations: 1.318 MB / 0.9924 GB, free: 20.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003495/2.073, allocations: 115.2 kB / 0.9926 GB, free: 20.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003445/2.074, allocations: 0.5432 MB / 0.9931 GB, free: 19.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003705/2.077, allocations: 2.522 MB / 0.9956 GB, free: 18.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00471/2.082, allocations: 4.941 MB / 1 GB, free: 14.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005254/2.087, allocations: 3.705 MB / 1.004 GB, free: 13.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.769e-05/2.087, allocations: 21.03 kB / 1.004 GB, free: 13.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.01672/2.104, allocations: 8.407 MB / 1.012 GB, free: 10.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/2.104, allocations: 42.88 kB / 1.012 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/2.105, allocations: 86.09 kB / 1.012 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/2.107, allocations: 0.8298 MB / 1.013 GB, free: 10 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005342/2.113, allocations: 1.345 MB / 1.014 GB, free: 9.961 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009759/2.122, allocations: 7.154 MB / 1.021 GB, free: 6.047 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004752/2.127, allocations: 325.7 kB / 1.022 GB, free: 5.926 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/2.128, allocations: 308 kB / 1.022 GB, free: 5.875 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 370 * 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 (710): * Single equations (assignments): 708 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007297/2.136, allocations: 3.481 MB / 1.025 GB, free: 4.242 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/2.137, allocations: 390.1 kB / 1.026 GB, free: 4.043 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/2.148, allocations: 5.804 MB / 1.031 GB, free: 1.703 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/2.148, allocations: 43.19 kB / 1.032 GB, free: 1.699 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.703e-05/2.148, allocations: 10.44 kB / 1.032 GB, free: 1.699 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.086e-05/2.148, allocations: 21 kB / 1.032 GB, free: 1.699 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03333/2.181, allocations: 14.57 MB / 1.046 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/2.181, allocations: 3.75 kB / 1.046 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003165/2.185, allocations: 0.6824 MB / 1.046 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002141/2.187, allocations: 0.684 MB / 1.047 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007133/2.188, allocations: 84.52 kB / 1.047 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009254/2.197, allocations: 6.307 MB / 1.053 GB, free: 6.312 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/2.197, allocations: 8 kB / 1.053 GB, free: 6.305 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02274/2.22, allocations: 9.366 MB / 1.063 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003141/2.223, allocations: 0.8593 MB / 1.063 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/2.224, allocations: 68 kB / 1.063 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002379/2.226, allocations: 192.4 kB / 1.064 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004902/2.227, allocations: 257.9 kB / 1.064 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/2.227, allocations: 108.7 kB / 1.064 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004675/2.232, allocations: 2.292 MB / 1.066 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.92e-07/2.232, allocations: 0 / 1.066 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008061/2.24, allocations: 1.553 MB / 1.068 GB, free: 11.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 1 (smr.phiMechanical) * 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 (366): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01564/2.256, allocations: 10.65 MB / 1.078 GB, free: 1.582 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2516/2.507, allocations: 6.373 MB / 1.084 GB, free: 97.24 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/2.507, allocations: 3.281 kB / 1.084 GB, free: 97.24 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00457/2.512, allocations: 2.836 MB / 1.087 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003946/2.516, allocations: 0.7905 MB / 1.088 GB, free: 97.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1021/2.618, allocations: 99.54 MB / 1.185 GB, free: 24.75 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01149/2.629, allocations: 6.042 MB / 1.191 GB, free: 23.77 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006321/2.636, allocations: 1.855 MB / 1.193 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005581/2.641, allocations: 3.081 MB / 1.196 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of SimCode: time 9.71e-07/2.641, allocations: 0 / 1.196 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4774/3.119, allocations: 115.3 MB / 1.308 GB, free: 81.92 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/3.119, allocations: 199.4 kB / 1.309 GB, free: 81.68 MB / 0.4948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.o HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_functions.h:1011:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensor_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensor_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_functions.h:1020:1: error: unknown type name '_omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24v' _omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24v omc__omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_functions.h:1029:1: error: unknown type name '_omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorDisplacementAngle_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_functions.h:1038:1: error: unknown type name '_omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v' _omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v omc__omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 4 errors generated. make: *** [: HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.o] Error 1