Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.004779/0.004779, allocations: 170.8 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.03934/0.03934, allocations: 8.798 MB / 24.65 MB, free: 4.109 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.354/1.354, allocations: 223.2 MB / 250.7 MB, free: 6.594 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.0009204/0.0009205, allocations: 91.12 kB / 304 MB, free: 4.043 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004121/0.0004122, allocations: 15.98 kB / 367.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2633, allocations: 52.53 MB / 419.7 MB, free: 48.01 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1565/0.4199, allocations: 140 MB / 0.5466 GB, free: 12.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.4203, allocations: 90.27 kB / 0.5467 GB, free: 12.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.069/1.489, allocations: 271.8 MB / 0.8121 GB, free: 57.28 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.489, allocations: 3.156 kB / 0.8121 GB, free: 57.28 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000804/1.49, allocations: 173.4 kB / 0.8122 GB, free: 57.26 MB / 490.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.03023/1.52, allocations: 7.889 MB / 0.8199 GB, free: 54.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/1.52, allocations: 11.56 kB / 0.8199 GB, free: 54.68 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006422/1.527, allocations: 1.278 MB / 0.8212 GB, free: 54.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02387/1.551, allocations: 3.91 MB / 0.825 GB, free: 54.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/1.57, allocations: 6.797 MB / 0.8316 GB, free: 53.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000701/1.571, allocations: 0.5728 MB / 0.8322 GB, free: 53.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003794/1.575, allocations: 0.7467 MB / 0.8329 GB, free: 53.06 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03371/1.609, allocations: 12.64 MB / 0.8453 GB, free: 52.13 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004143/1.609, allocations: 19.12 kB / 0.8453 GB, free: 52.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003557/1.613, allocations: 331.2 kB / 0.8456 GB, free: 52.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008639/1.613, allocations: 0.5911 MB / 0.8462 GB, free: 52.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02597/1.639, allocations: 11.56 MB / 0.8575 GB, free: 47.37 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06925/1.709, allocations: 43.62 MB / 0.9001 GB, free: 17.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02355/1.732, allocations: 25.15 MB / 0.9246 GB, free: 7.133 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006562/1.733, allocations: 242.4 kB / 0.9249 GB, free: 6.875 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004424/1.737, allocations: 2.555 MB / 0.9274 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=391): time 5.18e-06/1.738, allocations: 0 / 0.9274 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=397): time 0.3139/2.051, allocations: 17.84 MB / 0.9448 GB, free: 78.59 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/2.052, allocations: 357.6 kB / 0.9451 GB, free: 78.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004617/2.056, allocations: 3.132 MB / 0.9482 GB, free: 77.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006563/2.057, allocations: 91.55 kB / 0.9483 GB, free: 77.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001862/2.059, allocations: 3.368 MB / 0.9516 GB, free: 76.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001525/2.06, allocations: 1.354 MB / 0.9529 GB, free: 75.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/2.061, allocations: 113.6 kB / 0.953 GB, free: 75.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000268/2.061, allocations: 0.5246 MB / 0.9535 GB, free: 75.28 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003413/2.064, allocations: 2.523 MB / 0.956 GB, free: 75.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004923/2.069, allocations: 4.465 MB / 0.9603 GB, free: 72.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005864/2.075, allocations: 3.527 MB / 0.9638 GB, free: 72.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.198e-05/2.075, allocations: 19 kB / 0.9638 GB, free: 72.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01519/2.09, allocations: 8.222 MB / 0.9718 GB, free: 72.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.682e-05/2.091, allocations: 55.8 kB / 0.9719 GB, free: 72.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/2.091, allocations: 62.78 kB / 0.9719 GB, free: 72.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/2.093, allocations: 1.014 MB / 0.9729 GB, free: 72.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005483/2.099, allocations: 1.267 MB / 0.9742 GB, free: 72.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/2.112, allocations: 8.517 MB / 0.9825 GB, free: 70.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005691/2.118, allocations: 386.2 kB / 0.9828 GB, free: 70.94 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/2.119, allocations: 266.2 kB / 0.9831 GB, free: 70.94 MB / 0.4948 GB 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.00614/2.125, allocations: 2.908 MB / 0.9859 GB, free: 70.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/2.126, allocations: 384.9 kB / 0.9863 GB, free: 70.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009545/2.136, allocations: 6.164 MB / 0.9923 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/2.136, allocations: 41.06 kB / 0.9924 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/2.136, allocations: 11.64 kB / 0.9924 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.795e-05/2.136, allocations: 19.55 kB / 0.9924 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02666/2.163, allocations: 15.03 MB / 1.007 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/2.163, allocations: 3.906 kB / 1.007 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002572/2.165, allocations: 0.6843 MB / 1.008 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002347/2.168, allocations: 0.879 MB / 1.009 GB, free: 67.79 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002931/2.168, allocations: 82.05 kB / 1.009 GB, free: 67.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009152/2.177, allocations: 7.412 MB / 1.016 GB, free: 63.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/2.177, allocations: 13.05 kB / 1.016 GB, free: 63.56 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/2.19, allocations: 9.231 MB / 1.025 GB, free: 59.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002711/2.192, allocations: 0.9501 MB / 1.026 GB, free: 58.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008889/2.193, allocations: 71.62 kB / 1.026 GB, free: 58.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/2.196, allocations: 214.4 kB / 1.026 GB, free: 58.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005384/2.196, allocations: 278.6 kB / 1.026 GB, free: 58.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/2.196, allocations: 114.1 kB / 1.027 GB, free: 58.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003549/2.2, allocations: 2.32 MB / 1.029 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/2.2, allocations: 0 / 1.029 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006398/2.206, allocations: 1.516 MB / 1.03 GB, free: 57.28 MB / 0.4948 GB 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.0134/2.22, allocations: 11.28 MB / 1.041 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009899/2.23, allocations: 6.439 MB / 1.048 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/2.23, allocations: 3 kB / 1.048 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004789/2.235, allocations: 3.1 MB / 1.051 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003823/2.238, allocations: 0.7261 MB / 1.051 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3856/2.624, allocations: 82.28 MB / 1.132 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006112/2.63, allocations: 5.134 MB / 1.137 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006391/2.637, allocations: 1.67 MB / 1.138 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005051/2.642, allocations: 2.741 MB / 1.141 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of SimCode: time 1.473e-06/2.642, allocations: 1.156 kB / 1.141 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/2.819, allocations: 110.9 MB / 1.249 GB, free: 57.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/2.819, allocations: 199.5 kB / 1.249 GB, free: 57.14 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_VCurve1.o HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.c In file included from HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_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_VCurve1.c:7: In file included from ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_model.h:24: ./HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_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_VCurve1_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_VCurve1_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_VCurve1_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_VCurve1_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_VCurve1_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_VCurve1.o] Error 1