Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.007174/0.007174, allocations: 173.6 kB / 15.12 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.04005/0.04005, allocations: 8.8 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.387/1.387, allocations: 223.2 MB / 250.7 MB, free: 6.57 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.0008492/0.0008494, allocations: 101.6 kB / 304 MB, free: 4.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 12 kB / 367.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2606, allocations: 52.54 MB / 419.7 MB, free: 48.13 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1662/0.4268, allocations: 140.1 MB / 0.5466 GB, free: 12.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.4271, allocations: 82.11 kB / 0.5467 GB, free: 12.81 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036/1.463, allocations: 272.3 MB / 0.8126 GB, free: 43.44 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.165e-06/1.463, allocations: 0 / 0.8126 GB, free: 43.44 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000757/1.464, allocations: 178.7 kB / 0.8127 GB, free: 43.42 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.03191/1.495, allocations: 7.886 MB / 0.8204 GB, free: 40.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/1.496, allocations: 10.81 kB / 0.8205 GB, free: 40.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00623/1.502, allocations: 1.278 MB / 0.8217 GB, free: 40.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02287/1.525, allocations: 3.911 MB / 0.8255 GB, free: 40.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/1.543, allocations: 6.794 MB / 0.8322 GB, free: 39.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007119/1.544, allocations: 0.5682 MB / 0.8327 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003595/1.547, allocations: 0.7472 MB / 0.8334 GB, free: 39.19 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03314/1.58, allocations: 12.66 MB / 0.8458 GB, free: 30.37 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004469/1.581, allocations: 7.906 kB / 0.8458 GB, free: 30.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003343/1.584, allocations: 326.3 kB / 0.8461 GB, free: 30.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007708/1.585, allocations: 0.5992 MB / 0.8467 GB, free: 29.53 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02634/1.611, allocations: 11.55 MB / 0.858 GB, free: 19.47 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0823/1.694, allocations: 43.62 MB / 0.9006 GB, free: 7.059 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3068/2.001, allocations: 25.14 MB / 0.9251 GB, free: 53.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008582/2.001, allocations: 243.3 kB / 0.9254 GB, free: 53.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004931/2.006, allocations: 2.551 MB / 0.9279 GB, free: 52.78 MB / 490.7 MB Notification: Performance of pre-optimization done (n=391): time 5.841e-06/2.006, allocations: 0.6875 kB / 0.9279 GB, free: 52.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=397): time 0.03751/2.044, allocations: 17.85 MB / 0.9453 GB, free: 49.31 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/2.044, allocations: 354.7 kB / 0.9456 GB, free: 48.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005661/2.05, allocations: 3.129 MB / 0.9487 GB, free: 48.67 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007805/2.051, allocations: 87.17 kB / 0.9488 GB, free: 48.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/2.053, allocations: 3.37 MB / 0.9521 GB, free: 47.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002148/2.055, allocations: 1.345 MB / 0.9534 GB, free: 46.25 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/2.055, allocations: 119.5 kB / 0.9535 GB, free: 46.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003486/2.056, allocations: 0.5249 MB / 0.954 GB, free: 45.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004157/2.06, allocations: 2.523 MB / 0.9565 GB, free: 45.92 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005288/2.065, allocations: 4.462 MB / 0.9608 GB, free: 43.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005799/2.071, allocations: 3.527 MB / 0.9643 GB, free: 43.56 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.777e-05/2.071, allocations: 21.36 kB / 0.9643 GB, free: 43.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.0152/2.086, allocations: 8.231 MB / 0.9723 GB, free: 43.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/2.086, allocations: 55.36 kB / 0.9724 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/2.087, allocations: 59.31 kB / 0.9724 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00295/2.09, allocations: 1.009 MB / 0.9734 GB, free: 43.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005351/2.095, allocations: 1.266 MB / 0.9747 GB, free: 43.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/2.107, allocations: 8.517 MB / 0.983 GB, free: 41.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00687/2.114, allocations: 393.2 kB / 0.9833 GB, free: 41.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/2.115, allocations: 272.5 kB / 0.9836 GB, free: 41.6 MB / 490.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.007114/2.123, allocations: 2.897 MB / 0.9864 GB, free: 41.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/2.124, allocations: 398.8 kB / 0.9868 GB, free: 41.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009771/2.133, allocations: 6.161 MB / 0.9928 GB, free: 40.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.302e-05/2.134, allocations: 45.08 kB / 0.9929 GB, free: 40.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/2.134, allocations: 15.67 kB / 0.9929 GB, free: 40.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.372e-05/2.134, allocations: 16.45 kB / 0.9929 GB, free: 40.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02627/2.16, allocations: 15.01 MB / 1.008 GB, free: 34.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/2.16, allocations: 9.875 kB / 1.008 GB, free: 34.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002656/2.163, allocations: 0.682 MB / 1.008 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/2.165, allocations: 0.8802 MB / 1.009 GB, free: 34.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/2.165, allocations: 86.22 kB / 1.009 GB, free: 34.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009558/2.175, allocations: 7.414 MB / 1.016 GB, free: 30.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/2.175, allocations: 6.812 kB / 1.016 GB, free: 30.24 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01344/2.189, allocations: 9.241 MB / 1.025 GB, free: 25.77 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002899/2.191, allocations: 0.9379 MB / 1.026 GB, free: 25.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007905/2.192, allocations: 72.75 kB / 1.026 GB, free: 25.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002172/2.194, allocations: 223.1 kB / 1.027 GB, free: 25.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005514/2.195, allocations: 270 kB / 1.027 GB, free: 25.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002241/2.195, allocations: 114.4 kB / 1.027 GB, free: 25.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003491/2.199, allocations: 2.322 MB / 1.029 GB, free: 24.14 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/2.199, allocations: 3.094 kB / 1.029 GB, free: 24.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006827/2.206, allocations: 1.513 MB / 1.031 GB, free: 23.96 MB / 490.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.0129/2.219, allocations: 11.29 MB / 1.042 GB, free: 17.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01012/2.229, allocations: 6.441 MB / 1.048 GB, free: 13.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/2.229, allocations: 4 kB / 1.048 GB, free: 13.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004827/2.234, allocations: 3.099 MB / 1.051 GB, free: 11.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/2.238, allocations: 0.734 MB / 1.052 GB, free: 10.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4092/2.647, allocations: 82.49 MB / 1.132 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006464/2.653, allocations: 5.132 MB / 1.137 GB, free: 77 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00549/2.659, allocations: 1.672 MB / 1.139 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004839/2.664, allocations: 2.741 MB / 1.142 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of SimCode: time 1.593e-06/2.664, allocations: 0 / 1.142 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1883/2.852, allocations: 110.9 MB / 1.25 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002517/2.852, allocations: 200.6 kB / 1.25 GB, free: 33.38 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_VCurve2.o HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_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_VCurve2.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_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_VCurve2_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_VCurve2_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_VCurve2_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_VCurve2_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_VCurve2_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_VCurve2.o] Error 1