Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.00657/0.00657, allocations: 169.3 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04158/0.04158, allocations: 8.8 MB / 24.65 MB, free: 4.129 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.333/1.333, 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.0008921/0.0008921, allocations: 100.5 kB / 304 MB, free: 4.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.000363, allocations: 12 kB / 367.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2573, allocations: 52.54 MB / 419.7 MB, free: 47.97 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.4172, allocations: 140 MB / 0.5466 GB, free: 12.81 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4175, allocations: 79.97 kB / 0.5467 GB, free: 12.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9515/1.369, allocations: 272.3 MB / 0.8126 GB, free: 42.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.369, allocations: 0 / 0.8126 GB, free: 42.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005058/1.37, allocations: 171.6 kB / 0.8127 GB, free: 42.94 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02659/1.396, allocations: 7.89 MB / 0.8204 GB, free: 39.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.396, allocations: 9.125 kB / 0.8205 GB, free: 39.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005326/1.402, allocations: 1.286 MB / 0.8217 GB, free: 38.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.023/1.425, allocations: 3.906 MB / 0.8255 GB, free: 38.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01757/1.442, allocations: 6.789 MB / 0.8322 GB, free: 34.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006355/1.443, allocations: 0.5657 MB / 0.8327 GB, free: 34.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00373/1.447, allocations: 0.7522 MB / 0.8334 GB, free: 33.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03004/1.477, allocations: 12.63 MB / 0.8458 GB, free: 22.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004097/1.477, allocations: 15.84 kB / 0.8458 GB, free: 22.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002783/1.48, allocations: 328.8 kB / 0.8461 GB, free: 22.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006967/1.481, allocations: 0.5983 MB / 0.8467 GB, free: 21.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02479/1.505, allocations: 11.55 MB / 0.858 GB, free: 10.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3637/1.869, allocations: 43.62 MB / 0.9006 GB, free: 61.17 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01912/1.888, allocations: 25.15 MB / 0.9251 GB, free: 41.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006433/1.889, allocations: 247.3 kB / 0.9254 GB, free: 41.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003857/1.893, allocations: 2.556 MB / 0.9279 GB, free: 40.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 5.57e-06/1.893, allocations: 3 kB / 0.9279 GB, free: 40.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.03617/1.929, allocations: 17.85 MB / 0.9453 GB, free: 37.47 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/1.929, allocations: 358.9 kB / 0.9456 GB, free: 37.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004863/1.934, allocations: 3.121 MB / 0.9487 GB, free: 36.83 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006144/1.935, allocations: 96.08 kB / 0.9488 GB, free: 36.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/1.937, allocations: 3.368 MB / 0.9521 GB, free: 35.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001294/1.938, allocations: 1.353 MB / 0.9534 GB, free: 34.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003187/1.938, allocations: 116.1 kB / 0.9535 GB, free: 34.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003016/1.938, allocations: 0.5212 MB / 0.954 GB, free: 34.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004156/1.943, allocations: 2.529 MB / 0.9565 GB, free: 34.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005581/1.948, allocations: 4.457 MB / 0.9608 GB, free: 31.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005677/1.954, allocations: 3.528 MB / 0.9643 GB, free: 31.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.954, allocations: 20.06 kB / 0.9643 GB, free: 31.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01564/1.97, allocations: 8.225 MB / 0.9723 GB, free: 31.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.361e-05/1.97, allocations: 59.08 kB / 0.9724 GB, free: 31.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/1.97, allocations: 59.94 kB / 0.9724 GB, free: 31.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002705/1.973, allocations: 1.017 MB / 0.9734 GB, free: 31.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004782/1.978, allocations: 1.261 MB / 0.9747 GB, free: 31.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.989, allocations: 8.515 MB / 0.983 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005418/1.994, allocations: 381.1 kB / 0.9833 GB, free: 29.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009166/1.995, allocations: 266.8 kB / 0.9836 GB, free: 29.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006103/2.001, allocations: 2.909 MB / 0.9864 GB, free: 29.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/2.002, allocations: 386.2 kB / 0.9868 GB, free: 29.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009406/2.012, allocations: 6.163 MB / 0.9928 GB, free: 28.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-05/2.012, allocations: 44.2 kB / 0.9929 GB, free: 28.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/2.012, allocations: 10.81 kB / 0.9929 GB, free: 28.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.321e-05/2.012, allocations: 28.81 kB / 0.9929 GB, free: 28.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0245/2.036, allocations: 15.02 MB / 1.008 GB, free: 21.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/2.036, allocations: 4.781 kB / 1.008 GB, free: 21.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002575/2.039, allocations: 0.6853 MB / 1.008 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/2.041, allocations: 0.8766 MB / 1.009 GB, free: 21.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002576/2.041, allocations: 85.17 kB / 1.009 GB, free: 21.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008889/2.05, allocations: 7.415 MB / 1.016 GB, free: 17.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/2.05, allocations: 8.781 kB / 1.016 GB, free: 17.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/2.062, allocations: 9.241 MB / 1.025 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/2.065, allocations: 0.9379 MB / 1.026 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007527/2.066, allocations: 76.11 kB / 1.026 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/2.068, allocations: 217.8 kB / 1.027 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/2.069, allocations: 272.4 kB / 1.027 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002157/2.069, allocations: 111.4 kB / 1.027 GB, free: 12.19 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003387/2.072, allocations: 2.321 MB / 1.029 GB, free: 10.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.6e-07/2.072, allocations: 6.906 kB / 1.029 GB, free: 10.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008982/2.081, allocations: 1.519 MB / 1.031 GB, free: 9.426 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01593/2.097, allocations: 11.45 MB / 1.042 GB, free: 15.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01245/2.11, allocations: 6.447 MB / 1.048 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.11, allocations: 4.875 kB / 1.048 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005148/2.115, allocations: 3.096 MB / 1.051 GB, free: 7.332 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003725/2.119, allocations: 0.7126 MB / 1.052 GB, free: 6.766 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3962/2.515, allocations: 82.12 MB / 1.132 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007639/2.523, allocations: 5.14 MB / 1.137 GB, free: 80 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006521/2.529, allocations: 1.666 MB / 1.139 GB, free: 79.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005289/2.534, allocations: 2.748 MB / 1.142 GB, free: 79.96 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/2.534, allocations: 0 / 1.142 GB, free: 79.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1782/2.713, allocations: 110.9 MB / 1.25 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/2.713, allocations: 189.6 kB / 1.25 GB, free: 32.1 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_SMEE_VCurve3.o HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_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_SMEE_VCurve3.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_functions.h:1064:1: error: unknown type name '_omcQComplexOutput_24multiSensor_24apparentPower' _omcQComplexOutput_24multiSensor_24apparentPower omc__omcQComplexOutput_24multiSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_functions.h:1073:1: error: unknown type name '_omcQComplexOutput_24multiSensor_24apparentPowerTotal' _omcQComplexOutput_24multiSensor_24apparentPowerTotal omc__omcQComplexOutput_24multiSensor_24apparentPowerTotal (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_functions.h:1082:1: error: unknown type name '_omcQComplexOutput_24multiSensor_24i' _omcQComplexOutput_24multiSensor_24i omc__omcQComplexOutput_24multiSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_functions.h:1091:1: error: unknown type name '_omcQComplexOutput_24multiSensor_24v' _omcQComplexOutput_24multiSensor_24v omc__omcQComplexOutput_24multiSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_functions.h:1100: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_SMEE_VCurve3_functions.h:1109: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); ^ 2 warnings and 6 errors generated. make: *** [: HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.o] Error 1