Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_YD.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_YD,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_YD,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_YD",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.004733/0.004733, allocations: 171.1 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03716/0.03716, allocations: 8.802 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.351/1.351, allocations: 223.2 MB / 250.7 MB, free: 6.5 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.0008859/0.000886, allocations: 100.9 kB / 304 MB, free: 4.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004398/0.0004397, allocations: 20 kB / 370.5 MB, free: 1.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2812, allocations: 52.53 MB / 423 MB, free: 49.97 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.6437, allocations: 151.5 MB / 0.5611 GB, free: 114.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.644, allocations: 80.58 kB / 0.5612 GB, free: 114.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.511/2.155, allocations: 0.4898 GB / 1.051 GB, free: 12.28 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.687e-06/2.155, allocations: 0 / 1.051 GB, free: 12.28 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.002105/2.157, allocations: 351.6 kB / 1.051 GB, free: 11.93 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: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.7381/2.895, allocations: 15.71 MB / 1.067 GB, free: 22.93 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/2.895, allocations: 9.156 kB / 1.067 GB, free: 22.93 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0124/2.908, allocations: 2.18 MB / 1.069 GB, free: 22.79 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04296/2.951, allocations: 7.416 MB / 1.076 GB, free: 21.95 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03627/2.987, allocations: 12.59 MB / 1.088 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001973/2.989, allocations: 1.118 MB / 1.089 GB, free: 21.11 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008643/2.998, allocations: 1.473 MB / 1.091 GB, free: 21.09 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0766/3.074, allocations: 25.17 MB / 1.115 GB, free: 19.33 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001027/3.075, allocations: 29.33 kB / 1.115 GB, free: 19.32 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006672/3.082, allocations: 0.6284 MB / 1.116 GB, free: 19.32 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001499/3.084, allocations: 1.097 MB / 1.117 GB, free: 19.29 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05172/3.135, allocations: 22.86 MB / 1.139 GB, free: 19.14 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1576/3.293, allocations: 80.65 MB / 1.218 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04508/3.338, allocations: 39.27 MB / 1.257 GB, free: 4.879 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.436/3.774, allocations: 17.57 MB / 1.274 GB, free: 89.09 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009905/3.784, allocations: 5.362 MB / 1.279 GB, free: 88.79 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=727): time 1.729e-05/3.784, allocations: 0 / 1.279 GB, free: 88.79 MB / 0.5418 GB Notification: Performance of matching and sorting (n=735): time 0.1068/3.891, allocations: 41.63 MB / 1.32 GB, free: 83.65 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/3.891, allocations: 475 kB / 1.32 GB, free: 83.17 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009621/3.901, allocations: 5.639 MB / 1.326 GB, free: 82.71 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001435/3.902, allocations: 151.5 kB / 1.326 GB, free: 82.68 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.005733/3.908, allocations: 6.481 MB / 1.332 GB, free: 79.43 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002989/3.911, allocations: 2.438 MB / 1.334 GB, free: 77.89 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009155/3.912, allocations: 182.4 kB / 1.335 GB, free: 77.89 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0005289/3.912, allocations: 0.6741 MB / 1.335 GB, free: 77.57 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00681/3.919, allocations: 4.813 MB / 1.34 GB, free: 77.54 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/3.93, allocations: 7.669 MB / 1.347 GB, free: 74.2 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/3.941, allocations: 6.283 MB / 1.354 GB, free: 73.97 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/3.941, allocations: 24.38 kB / 1.354 GB, free: 73.97 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1162) (initialization): time 0.02842/3.97, allocations: 15.57 MB / 1.369 GB, free: 73.02 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/3.97, allocations: 39.38 kB / 1.369 GB, free: 73.02 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/3.97, allocations: 86.75 kB / 1.369 GB, free: 73.02 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007409/3.978, allocations: 2.922 MB / 1.372 GB, free: 72.91 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007485/3.985, allocations: 1.822 MB / 1.374 GB, free: 72.91 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03811/4.023, allocations: 31.84 MB / 1.405 GB, free: 55.45 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008389/4.032, allocations: 0.58 MB / 1.405 GB, free: 55.29 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00246/4.034, allocations: 403.1 kB / 1.406 GB, free: 55.22 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (974): * Single equations (assignments): 967 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,31.2%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01588/4.05, allocations: 5.879 MB / 1.411 GB, free: 51.17 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003255/4.053, allocations: 0.7102 MB / 1.412 GB, free: 50.45 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03183/4.085, allocations: 13.5 MB / 1.425 GB, free: 39.21 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.924e-05/4.085, allocations: 76 kB / 1.425 GB, free: 39.14 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001169/4.085, allocations: 32 kB / 1.425 GB, free: 39.11 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001907/4.086, allocations: 37.5 kB / 1.425 GB, free: 39.11 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06651/4.152, allocations: 27.98 MB / 1.453 GB, free: 16.25 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-05/4.152, allocations: 8 kB / 1.453 GB, free: 16.24 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00541/4.158, allocations: 1.082 MB / 1.454 GB, free: 15.41 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008987/4.167, allocations: 2.955 MB / 1.457 GB, free: 13.14 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00164/4.168, allocations: 168.3 kB / 1.457 GB, free: 12.98 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3906/4.559, allocations: 34.39 MB / 1.49 GB, free: 71.46 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/4.559, allocations: 13.39 kB / 1.49 GB, free: 71.46 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03584/4.595, allocations: 20.61 MB / 1.511 GB, free: 69.06 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006704/4.602, allocations: 1.813 MB / 1.512 GB, free: 68.96 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003042/4.605, allocations: 149.1 kB / 1.512 GB, free: 68.96 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006774/4.612, allocations: 448.4 kB / 1.513 GB, free: 68.96 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00307/4.615, allocations: 0.6545 MB / 1.514 GB, free: 68.95 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001217/4.616, allocations: 208.5 kB / 1.514 GB, free: 68.95 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.008574/4.624, allocations: 4.263 MB / 1.518 GB, free: 68.73 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.273e-06/4.624, allocations: 0.8438 kB / 1.518 GB, free: 68.73 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01489/4.639, allocations: 2.938 MB / 1.521 GB, free: 68.73 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (586): * Single equations (assignments): 572 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03673/4.676, allocations: 22.87 MB / 1.543 GB, free: 64.7 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02397/4.7, allocations: 13.46 MB / 1.556 GB, free: 63.2 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/4.7, allocations: 2.094 kB / 1.556 GB, free: 63.2 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01543/4.716, allocations: 8.463 MB / 1.565 GB, free: 59.4 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01172/4.727, allocations: 1.75 MB / 1.566 GB, free: 58.97 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5448/5.272, allocations: 148.5 MB / 1.711 GB, free: 102.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02656/5.299, allocations: 10.14 MB / 1.721 GB, free: 101.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0138/5.313, allocations: 2.982 MB / 1.724 GB, free: 101.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01244/5.325, allocations: 5.693 MB / 1.73 GB, free: 101.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.543e-06/5.325, allocations: 3.938 kB / 1.73 GB, free: 101.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7581/6.083, allocations: 228.8 MB / 1.953 GB, free: 96.49 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/6.084, allocations: 190.5 kB / 1.953 GB, free: 96.25 MB / 0.573 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_YD.o HanserModelica_HanserModelica_InductionMachines_IMC_YD.c In file included from HanserModelica_HanserModelica_InductionMachines_IMC_YD.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_YD_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_YD.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_YD_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMC_YD_functions.h:1207: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); ^ 2 warnings and 1 error generated. make: *** [: HanserModelica_HanserModelica_InductionMachines_IMC_YD.o] Error 1