Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",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.005024/0.005025, allocations: 169.9 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.03787/0.03787, allocations: 8.801 MB / 24.65 MB, free: 4.082 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.288/1.288, allocations: 223.2 MB / 250.7 MB, free: 4.738 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.0008529/0.0008529, allocations: 89.19 kB / 304 MB, free: 3.621 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004255, allocations: 12 kB / 367.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09723, allocations: 52.53 MB / 419.7 MB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3337/0.431, allocations: 151.8 MB / 0.5581 GB, free: 4.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.4312, allocations: 84.58 kB / 0.5582 GB, free: 4.398 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.519/1.95, allocations: 457.4 MB / 1.005 GB, free: 43.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.95, allocations: 192 / 1.005 GB, free: 43.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001334/1.951, allocations: 334.7 kB / 1.005 GB, free: 43.64 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05701/2.008, allocations: 14 MB / 1.019 GB, free: 39.19 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.376e-05/2.009, allocations: 10.06 kB / 1.019 GB, free: 39.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01306/2.022, allocations: 2.022 MB / 1.021 GB, free: 39.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03498/2.057, allocations: 5.856 MB / 1.027 GB, free: 38.26 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03478/2.091, allocations: 11.77 MB / 1.038 GB, free: 36.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001533/2.093, allocations: 1.029 MB / 1.039 GB, free: 36.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007724/2.101, allocations: 1.35 MB / 1.04 GB, free: 36.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06975/2.171, allocations: 22.45 MB / 1.062 GB, free: 26.03 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009573/2.172, allocations: 18.09 kB / 1.062 GB, free: 26.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00676/2.178, allocations: 0.5812 MB / 1.063 GB, free: 25.58 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/2.18, allocations: 0.9778 MB / 1.064 GB, free: 25.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04921/2.229, allocations: 19.58 MB / 1.083 GB, free: 9.703 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5124/2.741, allocations: 72.97 MB / 1.154 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03791/2.779, allocations: 42.3 MB / 1.196 GB, free: 32.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03284/2.812, allocations: 12.46 MB / 1.208 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/2.812, allocations: 88.19 kB / 1.208 GB, free: 31.26 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=514): time 7.073e-06/2.812, allocations: 0 / 1.208 GB, free: 31.26 MB / 0.5261 GB Notification: Performance of matching and sorting (n=522): time 0.07735/2.89, allocations: 27.61 MB / 1.235 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/2.89, allocations: 135.9 kB / 1.235 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01389/2.904, allocations: 5.055 MB / 1.24 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001394/2.905, allocations: 112.6 kB / 1.24 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00469/2.91, allocations: 6.118 MB / 1.246 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002651/2.913, allocations: 1.779 MB / 1.248 GB, free: 20.39 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000809/2.913, allocations: 150.1 kB / 1.248 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005197/2.914, allocations: 0.6103 MB / 1.248 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005371/2.919, allocations: 3.665 MB / 1.252 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007701/2.927, allocations: 6.434 MB / 1.258 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007633/2.935, allocations: 5.048 MB / 1.263 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-05/2.935, allocations: 28.75 kB / 1.263 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=970) (initialization): time 0.02216/2.957, allocations: 12.11 MB / 1.275 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.957, allocations: 45.19 kB / 1.275 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002391/2.957, allocations: 92.12 kB / 1.275 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004779/2.962, allocations: 1.521 MB / 1.277 GB, free: 6.465 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/2.969, allocations: 1.667 MB / 1.278 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02555/2.995, allocations: 18.36 MB / 1.296 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00767/3.002, allocations: 438.3 kB / 1.297 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/3.005, allocations: 368.7 kB / 1.297 GB, free: 10.03 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 415 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 860 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0143/3.019, allocations: 5.188 MB / 1.302 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002779/3.022, allocations: 0.5971 MB / 1.303 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01767/3.04, allocations: 9.462 MB / 1.312 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3961/3.436, allocations: 6.315 MB / 1.318 GB, free: 99.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.004e-05/3.436, allocations: 19.34 kB / 1.318 GB, free: 99.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001942/3.436, allocations: 28.31 kB / 1.318 GB, free: 99.06 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04882/3.485, allocations: 21.31 MB / 1.339 GB, free: 97.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.368e-05/3.485, allocations: 8.375 kB / 1.339 GB, free: 97.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004077/3.489, allocations: 0.8803 MB / 1.34 GB, free: 97.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004454/3.494, allocations: 1.55 MB / 1.341 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000941/3.494, allocations: 125.3 kB / 1.341 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02511/3.52, allocations: 21.6 MB / 1.362 GB, free: 88.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/3.52, allocations: 8.844 kB / 1.362 GB, free: 88.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02425/3.544, allocations: 14.79 MB / 1.377 GB, free: 86.39 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005301/3.549, allocations: 1.376 MB / 1.378 GB, free: 86.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002105/3.551, allocations: 116 kB / 1.378 GB, free: 86.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005579/3.557, allocations: 306 kB / 1.379 GB, free: 86.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00224/3.559, allocations: 416.3 kB / 1.379 GB, free: 86.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00112/3.56, allocations: 160.1 kB / 1.379 GB, free: 86.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01116/3.572, allocations: 3.808 MB / 1.383 GB, free: 86.11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.072e-06/3.572, allocations: 2.719 kB / 1.383 GB, free: 86.11 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01637/3.588, allocations: 2.391 MB / 1.385 GB, free: 86.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 440 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,54.9%) 64,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03297/3.621, allocations: 17.05 MB / 1.402 GB, free: 79.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01979/3.641, allocations: 9.963 MB / 1.412 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/3.641, allocations: 3.688 kB / 1.412 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01129/3.652, allocations: 5.502 MB / 1.417 GB, free: 73.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0102/3.662, allocations: 1.499 MB / 1.418 GB, free: 73.14 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5519/4.214, allocations: 137.2 MB / 1.553 GB, free: 103.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01872/4.233, allocations: 9.094 MB / 1.561 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009649/4.243, allocations: 2.532 MB / 1.564 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009695/4.253, allocations: 5.146 MB / 1.569 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of SimCode: time 2.394e-06/4.253, allocations: 1.094 kB / 1.569 GB, free: 102.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6538/4.906, allocations: 186.3 MB / 1.751 GB, free: 89.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/4.906, allocations: 190.3 kB / 1.751 GB, free: 88.8 MB / 0.5573 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_IMC_DOL.o HanserModelica_HanserModelica_InductionMachines_IMC_DOL.c In file included from HanserModelica_HanserModelica_InductionMachines_IMC_DOL.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_DOL_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_IMC_DOL.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_DOL_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMC_DOL_functions.h:1249:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_InductionMachines_IMC_DOL_functions.h:1258:1: error: unknown type name '_omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: HanserModelica_HanserModelica_InductionMachines_IMC_DOL.o] Error 1