Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00457/0.004571, allocations: 171.8 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0365/0.0365, allocations: 8.799 MB / 24.65 MB, free: 4.105 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.207/1.207, allocations: 223.2 MB / 250.7 MB, free: 6.582 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.001087/0.001087, allocations: 86.86 kB / 304 MB, free: 4.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003276, allocations: 15.98 kB / 367.1 MB, free: 4.965 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2133, allocations: 52.54 MB / 419.6 MB, free: 48.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.3483, allocations: 131.5 MB / 0.5382 GB, free: 5.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.3485, allocations: 83.91 kB / 0.5383 GB, free: 5.398 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8653/1.214, allocations: 315.6 MB / 0.8465 GB, free: 39.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.033e-06/1.214, allocations: 0 / 0.8465 GB, free: 39.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003784/1.214, allocations: 207.7 kB / 0.8467 GB, free: 39.39 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.02202/1.236, allocations: 8.664 MB / 0.8551 GB, free: 30.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/1.236, allocations: 12.56 kB / 0.8552 GB, free: 30.63 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01936/1.256, allocations: 3.891 MB / 0.859 GB, free: 26.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01343/1.269, allocations: 7.258 MB / 0.866 GB, free: 19.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003326/1.27, allocations: 0.6583 MB / 0.8667 GB, free: 18.74 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001629/1.271, allocations: 0.8747 MB / 0.8675 GB, free: 17.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02551/1.297, allocations: 14.67 MB / 0.8819 GB, free: 2.898 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002748/1.297, allocations: 15.89 kB / 0.8819 GB, free: 2.883 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/1.299, allocations: 383.9 kB / 0.8822 GB, free: 2.508 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006704/1.299, allocations: 0.683 MB / 0.8829 GB, free: 1.824 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02271/1.322, allocations: 12.56 MB / 0.8952 GB, free: 5.254 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2718/1.594, allocations: 46.88 MB / 0.941 GB, free: 51.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/1.608, allocations: 28.22 MB / 0.9685 GB, free: 26.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005366/1.609, allocations: 235.9 kB / 0.9687 GB, free: 26.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/1.609, allocations: 77.61 kB / 0.9688 GB, free: 25.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 6.883e-06/1.609, allocations: 0 / 0.9688 GB, free: 25.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.02517/1.634, allocations: 14.28 MB / 0.9828 GB, free: 24.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/1.634, allocations: 95.2 kB / 0.9829 GB, free: 24.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/1.638, allocations: 3.06 MB / 0.9858 GB, free: 23.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002527/1.638, allocations: 88.52 kB / 0.9859 GB, free: 23.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002018/1.64, allocations: 3.949 MB / 0.9898 GB, free: 21.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000853/1.641, allocations: 1.32 MB / 0.9911 GB, free: 20.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/1.641, allocations: 114.2 kB / 0.9912 GB, free: 20.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002796/1.642, allocations: 0.5457 MB / 0.9917 GB, free: 20.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/1.645, allocations: 2.528 MB / 0.9942 GB, free: 19.25 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003638/1.648, allocations: 4.937 MB / 0.999 GB, free: 15.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003822/1.652, allocations: 3.701 MB / 1.003 GB, free: 13.56 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-05/1.652, allocations: 22.5 kB / 1.003 GB, free: 13.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.01043/1.663, allocations: 8.409 MB / 1.011 GB, free: 10.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-05/1.663, allocations: 39.97 kB / 1.011 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.458e-05/1.663, allocations: 85.97 kB / 1.011 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001852/1.665, allocations: 0.8216 MB / 1.012 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/1.668, allocations: 1.347 MB / 1.013 GB, free: 10.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007933/1.676, allocations: 7.159 MB / 1.02 GB, free: 6.551 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/1.68, allocations: 330.8 kB / 1.02 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004015/1.681, allocations: 300.4 kB / 1.021 GB, free: 6.383 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 370 * 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 (710): * Single equations (assignments): 708 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004717/1.686, allocations: 3.483 MB / 1.024 GB, free: 4.746 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005674/1.686, allocations: 387 kB / 1.024 GB, free: 4.547 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007688/1.694, allocations: 5.815 MB / 1.03 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/1.694, allocations: 39.5 kB / 1.03 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/1.694, allocations: 9.375 kB / 1.03 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.738e-05/1.694, allocations: 17.72 kB / 1.03 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/1.714, allocations: 14.58 MB / 1.044 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/1.714, allocations: 3.656 kB / 1.044 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00246/1.716, allocations: 0.6816 MB / 1.045 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/1.718, allocations: 0.6828 MB / 1.046 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002224/1.718, allocations: 81.59 kB / 1.046 GB, free: 11.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008032/1.726, allocations: 6.308 MB / 1.052 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.726, allocations: 4 kB / 1.052 GB, free: 7.203 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/1.742, allocations: 9.04 MB / 1.061 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002619/1.744, allocations: 0.859 MB / 1.062 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000631/1.745, allocations: 68 kB / 1.062 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/1.747, allocations: 193 kB / 1.062 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004882/1.747, allocations: 259 kB / 1.062 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/1.748, allocations: 110.9 kB / 1.062 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003784/1.751, allocations: 2.286 MB / 1.065 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/1.751, allocations: 0 / 1.065 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005625/1.757, allocations: 1.556 MB / 1.066 GB, free: 11.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 1 (smr.phiMechanical) * 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 (366): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008741/1.758, allocations: 483.4 kB / 1.066 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009903/1.768, allocations: 6.345 MB / 1.073 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/1.768, allocations: 0 / 1.073 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004552/1.772, allocations: 2.841 MB / 1.075 GB, free: 2.773 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/1.777, allocations: 0.8022 MB / 1.076 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03324/1.81, allocations: 19.22 MB / 1.095 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.21/2.02, allocations: 6.28 MB / 1.101 GB, free: 99.27 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004825/2.025, allocations: 1.848 MB / 1.103 GB, free: 99.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008984/2.026, allocations: 330.3 kB / 1.103 GB, free: 99.23 MB / 0.5105 GB Notification: Performance of SimCode: time 7.11e-07/2.026, allocations: 0 / 1.103 GB, free: 99.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.09625/2.122, allocations: 58.52 MB / 1.16 GB, free: 96.44 MB / 0.5105 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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_SynchronousMachines_SMR_MTPA -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.o HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.c In file included from HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.c:7: In file included from ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_model.h:24: ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_functions.h:1011:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensor_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensor_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_functions.h:1020: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.SMR_MTPA_functions.h:1029: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); ^ ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_functions.h:1038:1: error: unknown type name '_omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v' _omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v omc__omcQComplexOutput_24voltageRMSSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 4 errors generated. make: *** [: HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.o] Error 1