Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.007644/0.007644, allocations: 171.9 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04405/0.04405, allocations: 8.799 MB / 24.65 MB, free: 4.125 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.362/1.362, allocations: 223.2 MB / 250.7 MB, free: 6.578 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.0009713/0.0009713, allocations: 88.97 kB / 304 MB, free: 4.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004497/0.0004496, allocations: 8 kB / 367.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2717, allocations: 52.55 MB / 419.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.4281, allocations: 136 MB / 0.5427 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.4284, allocations: 79.97 kB / 0.5427 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.053/1.481, allocations: 322.9 MB / 0.858 GB, free: 11.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.786e-06/1.481, allocations: 0 / 0.858 GB, free: 11.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006821/1.482, allocations: 211.8 kB / 0.8582 GB, free: 11.77 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.0306/1.513, allocations: 8.86 MB / 0.8669 GB, free: 2.816 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.513, allocations: 12.03 kB / 0.8669 GB, free: 2.805 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006106/1.519, allocations: 1.341 MB / 0.8682 GB, free: 1.453 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02214/1.541, allocations: 3.941 MB / 0.8721 GB, free: 13.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01952/1.56, allocations: 7.413 MB / 0.8793 GB, free: 5.996 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000767/1.561, allocations: 0.6704 MB / 0.88 GB, free: 5.324 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003766/1.565, allocations: 0.8866 MB / 0.8808 GB, free: 4.438 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04146/1.607, allocations: 14.89 MB / 0.8954 GB, free: 5.215 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005237/1.607, allocations: 19.75 kB / 0.8954 GB, free: 5.195 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003636/1.611, allocations: 392 kB / 0.8958 GB, free: 4.812 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001049/1.612, allocations: 0.6834 MB / 0.8964 GB, free: 4.125 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5322/2.144, allocations: 12.72 MB / 0.9089 GB, free: 55.84 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08785/2.232, allocations: 48.21 MB / 0.9559 GB, free: 47.18 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/2.248, allocations: 28.78 MB / 0.984 GB, free: 21.89 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005742/2.249, allocations: 247.4 kB / 0.9843 GB, free: 21.69 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.986e-05/2.249, allocations: 69.16 kB / 0.9843 GB, free: 21.62 MB / 474.8 MB Notification: Performance of pre-optimization done (n=374): time 6.022e-06/2.249, allocations: 0 / 0.9843 GB, free: 21.62 MB / 474.8 MB Notification: Performance of matching and sorting (n=382): time 0.02823/2.277, allocations: 14.45 MB / 0.9985 GB, free: 15.38 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/2.277, allocations: 91.59 kB / 0.9985 GB, free: 15.31 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005545/2.283, allocations: 3.299 MB / 1.002 GB, free: 14.07 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007991/2.284, allocations: 88.61 kB / 1.002 GB, free: 14 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002416/2.286, allocations: 4.076 MB / 1.006 GB, free: 10.93 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001383/2.287, allocations: 1.308 MB / 1.007 GB, free: 9.922 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/2.288, allocations: 119.5 kB / 1.007 GB, free: 9.828 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003103/2.288, allocations: 0.5471 MB / 1.008 GB, free: 9.418 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/2.292, allocations: 2.551 MB / 1.01 GB, free: 8.465 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00432/2.296, allocations: 5.007 MB / 1.015 GB, free: 4.316 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004797/2.301, allocations: 3.744 MB / 1.019 GB, free: 2.719 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.264e-05/2.301, allocations: 23.44 kB / 1.019 GB, free: 2.719 MB / 474.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0139/2.315, allocations: 8.555 MB / 1.027 GB, free: 15.79 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.358e-05/2.315, allocations: 40.06 kB / 1.027 GB, free: 15.79 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/2.315, allocations: 84.94 kB / 1.027 GB, free: 15.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/2.317, allocations: 0.8495 MB / 1.028 GB, free: 15.61 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004866/2.322, allocations: 1.368 MB / 1.029 GB, free: 15.56 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/2.333, allocations: 8.446 MB / 1.038 GB, free: 10.34 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/2.337, allocations: 341.5 kB / 1.038 GB, free: 10.21 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/2.338, allocations: 308.1 kB / 1.038 GB, free: 10.17 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 374 * 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 (722): * Single equations (assignments): 719 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007283/2.346, allocations: 3.506 MB / 1.042 GB, free: 8.473 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/2.347, allocations: 414.2 kB / 1.042 GB, free: 8.266 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009333/2.356, allocations: 5.81 MB / 1.048 GB, free: 5.902 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-05/2.356, allocations: 45.16 kB / 1.048 GB, free: 5.898 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/2.356, allocations: 7.438 kB / 1.048 GB, free: 5.898 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.822e-05/2.356, allocations: 29.23 kB / 1.048 GB, free: 5.891 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02823/2.384, allocations: 14.57 MB / 1.062 GB, free: 10.91 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/2.385, allocations: 0 / 1.062 GB, free: 10.91 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/2.387, allocations: 0.6743 MB / 1.063 GB, free: 10.35 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/2.389, allocations: 0.7087 MB / 1.063 GB, free: 9.812 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002772/2.389, allocations: 78.23 kB / 1.064 GB, free: 9.742 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009504/2.399, allocations: 7.607 MB / 1.071 GB, free: 2.719 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/2.399, allocations: 7.938 kB / 1.071 GB, free: 2.711 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/2.412, allocations: 8.618 MB / 1.079 GB, free: 11.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003134/2.416, allocations: 0.8842 MB / 1.08 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007887/2.416, allocations: 75.95 kB / 1.08 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/2.418, allocations: 185.4 kB / 1.081 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004782/2.419, allocations: 253.5 kB / 1.081 GB, free: 9.926 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/2.419, allocations: 107 kB / 1.081 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004201/2.423, allocations: 2.466 MB / 1.083 GB, free: 7.801 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.11e-07/2.423, allocations: 0 / 1.083 GB, free: 7.801 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007275/2.431, allocations: 1.604 MB / 1.085 GB, free: 6.207 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (inertiaLoad.w,quadraticTorque.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 (363): * Single equations (assignments): 360 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3222/2.753, allocations: 10.16 MB / 1.095 GB, free: 97.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00987/2.763, allocations: 6.495 MB / 1.101 GB, free: 96.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/2.763, allocations: 3.719 kB / 1.101 GB, free: 96.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004566/2.767, allocations: 2.944 MB / 1.104 GB, free: 96.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004453/2.772, allocations: 0.8494 MB / 1.105 GB, free: 96.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1033/2.875, allocations: 101.7 MB / 1.204 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01334/2.889, allocations: 6.114 MB / 1.21 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007266/2.896, allocations: 1.872 MB / 1.212 GB, free: 21.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007061/2.903, allocations: 3.166 MB / 1.215 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of SimCode: time 2.314e-06/2.903, allocations: 4 kB / 1.215 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4991/3.402, allocations: 120.8 MB / 1.333 GB, free: 94.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/3.402, allocations: 199.9 kB / 1.333 GB, free: 93.88 MB / 0.5105 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_SMPM_CurrentSource.o HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_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_SMPM_CurrentSource.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_functions.h:1140: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_SMPM_CurrentSource_functions.h:1149: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_SMPM_CurrentSource_functions.h:1158: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_SMPM_CurrentSource_functions.h:1167: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_SMPM_CurrentSource.o] Error 1