Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.006/0.006, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03823/0.03823, allocations: 8.798 MB / 24.65 MB, free: 4.117 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.341/1.341, allocations: 223.2 MB / 250.7 MB, free: 6.477 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.001087/0.001087, allocations: 109.6 kB / 304 MB, free: 3.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003694, allocations: 16 kB / 367.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2975, allocations: 52.53 MB / 419.7 MB, free: 48.1 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.4554, allocations: 140.1 MB / 0.5466 GB, free: 12.88 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.4557, allocations: 85.75 kB / 0.5467 GB, free: 12.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9612/1.417, allocations: 272.2 MB / 0.8126 GB, free: 58.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.417, allocations: 3.938 kB / 0.8126 GB, free: 58.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005569/1.418, allocations: 179.8 kB / 0.8127 GB, free: 58.9 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02757/1.445, allocations: 7.889 MB / 0.8204 GB, free: 55.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/1.445, allocations: 10 kB / 0.8205 GB, free: 55.41 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005731/1.451, allocations: 1.271 MB / 0.8217 GB, free: 54.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02267/1.474, allocations: 3.912 MB / 0.8255 GB, free: 54.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0172/1.491, allocations: 6.79 MB / 0.8322 GB, free: 50.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006457/1.491, allocations: 0.5673 MB / 0.8327 GB, free: 50.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003981/1.495, allocations: 0.7468 MB / 0.8334 GB, free: 50.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02775/1.523, allocations: 12.64 MB / 0.8458 GB, free: 38.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001977/1.523, allocations: 15.91 kB / 0.8458 GB, free: 38.72 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001052/1.525, allocations: 328.9 kB / 0.8461 GB, free: 38.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004451/1.525, allocations: 0.5905 MB / 0.8467 GB, free: 37.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02054/1.546, allocations: 11.56 MB / 0.858 GB, free: 26.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4036/1.949, allocations: 43.61 MB / 0.9006 GB, free: 61.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02162/1.971, allocations: 25.15 MB / 0.9251 GB, free: 41.33 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006645/1.972, allocations: 246.5 kB / 0.9254 GB, free: 41.14 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00438/1.976, allocations: 2.557 MB / 0.9279 GB, free: 40.91 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 6.783e-06/1.976, allocations: 0 / 0.9279 GB, free: 40.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.03846/2.015, allocations: 17.85 MB / 0.9453 GB, free: 37.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/2.015, allocations: 358.3 kB / 0.9456 GB, free: 37.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/2.02, allocations: 3.125 MB / 0.9487 GB, free: 36.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006613/2.021, allocations: 89.42 kB / 0.9488 GB, free: 36.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002024/2.023, allocations: 3.375 MB / 0.9521 GB, free: 35.14 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/2.024, allocations: 1.353 MB / 0.9534 GB, free: 34.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/2.024, allocations: 112 kB / 0.9535 GB, free: 34.29 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002777/2.025, allocations: 0.5267 MB / 0.954 GB, free: 33.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004146/2.029, allocations: 2.525 MB / 0.9565 GB, free: 33.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005054/2.034, allocations: 4.465 MB / 0.9608 GB, free: 31.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004773/2.039, allocations: 3.524 MB / 0.9643 GB, free: 31.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.465e-05/2.039, allocations: 14.53 kB / 0.9643 GB, free: 31.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01418/2.053, allocations: 8.225 MB / 0.9723 GB, free: 31.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/2.053, allocations: 55.7 kB / 0.9724 GB, free: 31.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001624/2.053, allocations: 60.44 kB / 0.9724 GB, free: 31.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002921/2.056, allocations: 1.015 MB / 0.9734 GB, free: 31.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/2.061, allocations: 1.268 MB / 0.9747 GB, free: 31.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/2.073, allocations: 8.515 MB / 0.983 GB, free: 29.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006034/2.079, allocations: 393.2 kB / 0.9833 GB, free: 29.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008642/2.08, allocations: 263.8 kB / 0.9836 GB, free: 29.59 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.006881/2.087, allocations: 2.908 MB / 0.9864 GB, free: 29.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/2.088, allocations: 390.5 kB / 0.9868 GB, free: 29.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/2.098, allocations: 6.157 MB / 0.9928 GB, free: 28.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/2.098, allocations: 42.5 kB / 0.9929 GB, free: 28.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/2.098, allocations: 9.688 kB / 0.9929 GB, free: 28.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.51e-05/2.098, allocations: 24.3 kB / 0.9929 GB, free: 28.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/2.122, allocations: 15.02 MB / 1.008 GB, free: 21.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/2.122, allocations: 10.59 kB / 1.008 GB, free: 21.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/2.124, allocations: 0.6823 MB / 1.008 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002256/2.127, allocations: 0.8773 MB / 1.009 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002353/2.127, allocations: 82.44 kB / 1.009 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009077/2.136, allocations: 7.41 MB / 1.016 GB, free: 17.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/2.136, allocations: 6.219 kB / 1.016 GB, free: 17.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/2.147, allocations: 9.246 MB / 1.025 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00266/2.15, allocations: 0.9408 MB / 1.026 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/2.151, allocations: 71.38 kB / 1.026 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/2.153, allocations: 218.4 kB / 1.027 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004983/2.153, allocations: 275.8 kB / 1.027 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002314/2.153, allocations: 114.1 kB / 1.027 GB, free: 12.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003527/2.157, allocations: 2.325 MB / 1.029 GB, free: 11.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.157, allocations: 0 / 1.029 GB, free: 11.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007177/2.164, allocations: 1.517 MB / 1.031 GB, free: 9.844 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.0128/2.177, allocations: 11.29 MB / 1.042 GB, free: 15.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01285/2.19, allocations: 6.449 MB / 1.048 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/2.19, allocations: 4 kB / 1.048 GB, free: 10.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005981/2.196, allocations: 3.083 MB / 1.051 GB, free: 7.324 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/2.2, allocations: 0.725 MB / 1.052 GB, free: 6.754 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3693/2.57, allocations: 82.13 MB / 1.132 GB, free: 80.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007755/2.578, allocations: 5.136 MB / 1.137 GB, free: 79.95 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005814/2.583, allocations: 1.668 MB / 1.139 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004387/2.588, allocations: 2.743 MB / 1.141 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of SimCode: time 1.001e-06/2.588, allocations: 5.797 kB / 1.141 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1512/2.739, allocations: 110.9 MB / 1.25 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/2.739, allocations: 201.7 kB / 1.25 GB, free: 32.24 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_VCurve4.o HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_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_VCurve4.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_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_VCurve4_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_VCurve4_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_VCurve4_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_VCurve4_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_VCurve4_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_VCurve4.o] Error 1