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: translateModel(HanserModelica.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_YD") translateModel(HanserModelica.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004393/0.004393, 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.03628/0.03628, allocations: 8.799 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.185/1.185, allocations: 223.2 MB / 250.7 MB, free: 6.551 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.0007933/0.0007933, allocations: 90.81 kB / 304 MB, free: 4.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.000386, allocations: 12 kB / 370.4 MB, free: 1.621 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.226, allocations: 52.54 MB / 423 MB, free: 49.93 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.5375, allocations: 151.5 MB / 0.561 GB, free: 114.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.5378, allocations: 78.8 kB / 0.5611 GB, free: 114.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.229/1.766, allocations: 0.4897 GB / 1.051 GB, free: 12.27 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.633e-06/1.766, allocations: 0 / 1.051 GB, free: 12.27 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009356/1.767, allocations: 351.6 kB / 1.051 GB, free: 11.92 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.4984/2.266, allocations: 15.69 MB / 1.067 GB, free: 22.95 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/2.266, allocations: 15.09 kB / 1.067 GB, free: 22.95 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03807/2.304, allocations: 7.413 MB / 1.074 GB, free: 22.12 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02487/2.329, allocations: 12.59 MB / 1.086 GB, free: 21.3 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001066/2.33, allocations: 1.123 MB / 1.087 GB, free: 21.27 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005546/2.335, allocations: 1.468 MB / 1.089 GB, free: 21.26 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0519/2.387, allocations: 25.17 MB / 1.113 GB, free: 19.49 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000424/2.388, allocations: 25.42 kB / 1.113 GB, free: 19.48 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003045/2.391, allocations: 0.6301 MB / 1.114 GB, free: 19.48 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009139/2.392, allocations: 1.09 MB / 1.115 GB, free: 19.45 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04018/2.432, allocations: 22.87 MB / 1.137 GB, free: 19.31 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/2.548, allocations: 80.59 MB / 1.216 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03282/2.581, allocations: 39.16 MB / 1.254 GB, free: 6.336 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.298/2.879, allocations: 17.03 MB / 1.271 GB, free: 88.42 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006564/2.886, allocations: 5.361 MB / 1.276 GB, free: 88.12 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=727): time 8.807e-06/2.886, allocations: 3.406 kB / 1.276 GB, free: 88.12 MB / 0.5418 GB Notification: Performance of matching and sorting (n=735): time 0.09379/2.98, allocations: 41.63 MB / 1.317 GB, free: 82.99 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/2.98, allocations: 476.8 kB / 1.317 GB, free: 82.51 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008841/2.989, allocations: 5.641 MB / 1.323 GB, free: 82.04 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001259/2.99, allocations: 148.8 kB / 1.323 GB, free: 82.01 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.004845/2.995, allocations: 6.479 MB / 1.329 GB, free: 78.76 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002427/2.997, allocations: 2.442 MB / 1.331 GB, free: 77.23 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005961/2.998, allocations: 184.5 kB / 1.332 GB, free: 77.23 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0003843/2.998, allocations: 0.6665 MB / 1.332 GB, free: 76.91 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006292/3.005, allocations: 4.813 MB / 1.337 GB, free: 76.88 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007764/3.012, allocations: 7.671 MB / 1.345 GB, free: 73.54 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007961/3.02, allocations: 6.275 MB / 1.351 GB, free: 73.31 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.364e-05/3.02, allocations: 29.78 kB / 1.351 GB, free: 73.3 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1162) (initialization): time 0.02577/3.046, allocations: 15.57 MB / 1.366 GB, free: 72.36 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 7.336e-05/3.046, allocations: 41.88 kB / 1.366 GB, free: 72.36 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/3.046, allocations: 83.16 kB / 1.366 GB, free: 72.36 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00655/3.053, allocations: 2.934 MB / 1.369 GB, free: 72.25 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007058/3.06, allocations: 1.816 MB / 1.371 GB, free: 72.25 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03303/3.093, allocations: 31.84 MB / 1.402 GB, free: 54.92 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007374/3.101, allocations: 0.5824 MB / 1.402 GB, free: 54.76 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001259/3.102, allocations: 406.2 kB / 1.403 GB, free: 54.69 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.009379/3.111, allocations: 5.875 MB / 1.408 GB, free: 51.27 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/3.113, allocations: 0.7055 MB / 1.409 GB, free: 50.55 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/3.132, allocations: 13.51 MB / 1.422 GB, free: 39.31 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.912e-05/3.133, allocations: 72 kB / 1.422 GB, free: 39.24 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-05/3.133, allocations: 32 kB / 1.422 GB, free: 39.21 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.579e-05/3.133, allocations: 37.55 kB / 1.422 GB, free: 39.21 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04349/3.176, allocations: 27.99 MB / 1.45 GB, free: 16.34 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/3.176, allocations: 8 kB / 1.45 GB, free: 16.34 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004585/3.181, allocations: 1.084 MB / 1.451 GB, free: 15.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006907/3.188, allocations: 2.963 MB / 1.454 GB, free: 13.23 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000873/3.189, allocations: 165 kB / 1.454 GB, free: 13.08 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2876/3.476, allocations: 34.38 MB / 1.487 GB, free: 71.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/3.476, allocations: 10.47 kB / 1.487 GB, free: 71.3 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03029/3.507, allocations: 20.61 MB / 1.508 GB, free: 68.91 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005616/3.512, allocations: 1.815 MB / 1.509 GB, free: 68.81 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003443/3.516, allocations: 149.6 kB / 1.51 GB, free: 68.81 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006035/3.522, allocations: 448.8 kB / 1.51 GB, free: 68.81 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002152/3.524, allocations: 0.6529 MB / 1.511 GB, free: 68.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005395/3.525, allocations: 214.6 kB / 1.511 GB, free: 68.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.006588/3.531, allocations: 4.262 MB / 1.515 GB, free: 68.58 MB / 0.5418 GB Notification: Performance of sort global known variables: time 4.3e-07/3.531, allocations: 0 / 1.515 GB, free: 68.58 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01224/3.543, allocations: 2.939 MB / 1.518 GB, free: 68.58 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.001993/3.545, allocations: 0.6334 MB / 1.518 GB, free: 68.47 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01933/3.565, allocations: 13.47 MB / 1.532 GB, free: 67.3 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/3.565, allocations: 0 / 1.532 GB, free: 67.3 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01215/3.577, allocations: 8.453 MB / 1.54 GB, free: 66.13 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008042/3.585, allocations: 1.755 MB / 1.542 GB, free: 66.1 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04992/3.635, allocations: 34.76 MB / 1.575 GB, free: 51.77 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01234/3.647, allocations: 10.15 MB / 1.585 GB, free: 48.35 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.008802/3.656, allocations: 2.976 MB / 1.588 GB, free: 48.09 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/3.658, allocations: 0.5255 MB / 1.589 GB, free: 48.05 MB / 0.5418 GB Notification: Performance of SimCode: time 7.22e-07/3.658, allocations: 7.656 kB / 1.589 GB, free: 48.05 MB / 0.5418 GB Notification: Performance of Templates: time 0.4483/4.106, allocations: 130.2 MB / 1.716 GB, free: 69.05 MB / 0.5418 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_YD.makefile make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_YD.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=HanserModelica_HanserModelica_InductionMachines_IMC_YD -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=15 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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: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); ^ 1 error generated. make: *** [: HanserModelica_HanserModelica.InductionMachines.IMC_YD.o] Error 1