Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",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.006307/0.006307, allocations: 170 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.03828/0.03828, allocations: 8.795 MB / 24.65 MB, free: 4.113 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.394/1.394, allocations: 223.2 MB / 250.7 MB, free: 6.562 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.0009545/0.0009546, allocations: 93.39 kB / 304 MB, free: 4.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003732, allocations: 8 kB / 367.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2921, allocations: 52.54 MB / 419.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.4464, allocations: 131.1 MB / 0.5379 GB, free: 5.824 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4467, allocations: 84.66 kB / 0.538 GB, free: 5.742 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.49/1.936, allocations: 380 MB / 0.9091 GB, free: 53.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.563e-06/1.936, allocations: 4 kB / 0.9091 GB, free: 53.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006714/1.937, allocations: 238.6 kB / 0.9093 GB, free: 53.28 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04147/1.979, allocations: 10.7 MB / 0.9198 GB, free: 50.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/1.979, allocations: 8.094 kB / 0.9198 GB, free: 50.05 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009275/1.988, allocations: 1.791 MB / 0.9215 GB, free: 49.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03334/2.021, allocations: 5.678 MB / 0.9271 GB, free: 49.31 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02832/2.05, allocations: 8.971 MB / 0.9358 GB, free: 48.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009872/2.051, allocations: 0.7769 MB / 0.9366 GB, free: 48.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00502/2.056, allocations: 1.016 MB / 0.9376 GB, free: 48.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05025/2.106, allocations: 18.04 MB / 0.9552 GB, free: 46.99 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006293/2.107, allocations: 10.06 kB / 0.9552 GB, free: 46.99 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004456/2.111, allocations: 450.2 kB / 0.9556 GB, free: 46.99 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/2.112, allocations: 0.8692 MB / 0.9565 GB, free: 46.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03774/2.15, allocations: 16.35 MB / 0.9724 GB, free: 46.87 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/2.255, allocations: 58.45 MB / 1.03 GB, free: 21 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0315/2.287, allocations: 37.29 MB / 1.066 GB, free: 3.758 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008202/2.287, allocations: 187.8 kB / 1.066 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.803e-05/2.288, allocations: 89.67 kB / 1.066 GB, free: 3.566 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=524): time 7.775e-06/2.288, allocations: 0 / 1.066 GB, free: 3.566 MB / 0.4948 GB Notification: Performance of matching and sorting (n=530): time 0.04978/2.337, allocations: 21.86 MB / 1.088 GB, free: 2.434 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.24e-05/2.337, allocations: 107.5 kB / 1.088 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3215/2.659, allocations: 3.675 MB / 1.091 GB, free: 82.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001306/2.66, allocations: 108.9 kB / 1.091 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003835/2.664, allocations: 4.516 MB / 1.096 GB, free: 81.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002376/2.667, allocations: 1.795 MB / 1.098 GB, free: 80.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007199/2.667, allocations: 143.6 kB / 1.098 GB, free: 80.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005067/2.668, allocations: 0.5935 MB / 1.098 GB, free: 80.11 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005597/2.673, allocations: 3.48 MB / 1.102 GB, free: 80.09 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00807/2.682, allocations: 5.902 MB / 1.107 GB, free: 77.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008219/2.69, allocations: 4.806 MB / 1.112 GB, free: 77.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001713/2.69, allocations: 23.72 kB / 1.112 GB, free: 77.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02344/2.714, allocations: 11 MB / 1.123 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/2.714, allocations: 40 kB / 1.123 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002321/2.714, allocations: 80.44 kB / 1.123 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003569/2.717, allocations: 1.392 MB / 1.124 GB, free: 76.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006691/2.724, allocations: 1.605 MB / 1.126 GB, free: 76.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/2.741, allocations: 10.92 MB / 1.137 GB, free: 75.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006146/2.747, allocations: 421.3 kB / 1.137 GB, free: 75.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/2.749, allocations: 339.8 kB / 1.137 GB, free: 75.07 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * 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 (844): * Single equations (assignments): 839 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(14,40.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009753/2.759, allocations: 4.163 MB / 1.141 GB, free: 74.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/2.76, allocations: 472.8 kB / 1.142 GB, free: 74.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01608/2.776, allocations: 8.565 MB / 1.15 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01216/2.788, allocations: 7.125 MB / 1.157 GB, free: 74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/2.788, allocations: 14.16 kB / 1.157 GB, free: 74 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.811e-05/2.789, allocations: 28.22 kB / 1.157 GB, free: 74 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04242/2.831, allocations: 19.86 MB / 1.177 GB, free: 69.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.412e-05/2.831, allocations: 1.906 kB / 1.177 GB, free: 69.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004334/2.835, allocations: 0.9368 MB / 1.177 GB, free: 69.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003236/2.839, allocations: 1.202 MB / 1.179 GB, free: 69.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001088/2.84, allocations: 113.6 kB / 1.179 GB, free: 69.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/2.852, allocations: 9.494 MB / 1.188 GB, free: 64.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/2.852, allocations: 5.359 kB / 1.188 GB, free: 64.35 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01981/2.872, allocations: 12.51 MB / 1.2 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003855/2.876, allocations: 1.166 MB / 1.201 GB, free: 58.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001576/2.877, allocations: 94.31 kB / 1.201 GB, free: 58.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003938/2.881, allocations: 285.1 kB / 1.202 GB, free: 58.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/2.882, allocations: 347.3 kB / 1.202 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004822/2.883, allocations: 158.7 kB / 1.202 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004388/2.887, allocations: 2.697 MB / 1.205 GB, free: 56.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.11e-07/2.887, allocations: 0 / 1.205 GB, free: 56.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009143/2.896, allocations: 1.97 MB / 1.207 GB, free: 56.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * 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 (502): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(14,41.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01964/2.916, allocations: 13.94 MB / 1.22 GB, free: 48.19 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0146/2.931, allocations: 8.781 MB / 1.229 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/2.931, allocations: 0 / 1.229 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007151/2.938, allocations: 4.195 MB / 1.233 GB, free: 37.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005446/2.943, allocations: 0.9822 MB / 1.234 GB, free: 36.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4208/3.364, allocations: 109.6 MB / 1.341 GB, free: 39.98 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01778/3.382, allocations: 7.2 MB / 1.348 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01009/3.392, allocations: 2.333 MB / 1.35 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008986/3.401, allocations: 3.906 MB / 1.354 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of SimCode: time 1.433e-06/3.401, allocations: 0 / 1.354 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5231/3.924, allocations: 147.6 MB / 1.498 GB, free: 72.69 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/3.925, allocations: 196.3 kB / 1.498 GB, free: 72.46 MB / 0.5261 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_InductionMachines_IMS_Characteristics1.o HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.c In file included from HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_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_InductionMachines_IMS_Characteristics1.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_functions.h:1122:1: error: unknown type name '_omcQComplexOutput_24currentSensor_24currentSensor_24i' _omcQComplexOutput_24currentSensor_24currentSensor_24i omc__omcQComplexOutput_24currentSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_functions.h:1131:1: error: unknown type name '_omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensor_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.o] Error 1