Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008098/0.008098, allocations: 170.8 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0463/0.0463, allocations: 8.8 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.202/1.202, allocations: 223.2 MB / 250.7 MB, free: 6.527 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.0008155/0.0008155, allocations: 100.1 kB / 304 MB, free: 3.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003381, allocations: 12 kB / 367.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2248, allocations: 52.54 MB / 419.6 MB, free: 48.14 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.3647, allocations: 136 MB / 0.5426 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.3649, allocations: 82.5 kB / 0.5427 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9008/1.266, allocations: 322.9 MB / 0.858 GB, free: 11.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.504e-06/1.266, allocations: 0 / 0.858 GB, free: 11.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005214/1.266, allocations: 215.9 kB / 0.8582 GB, free: 11.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.02722/1.294, allocations: 8.864 MB / 0.8668 GB, free: 2.754 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/1.294, allocations: 8.031 kB / 0.8668 GB, free: 2.746 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02051/1.314, allocations: 3.937 MB / 0.8707 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0179/1.332, allocations: 7.409 MB / 0.8779 GB, free: 7.297 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007925/1.333, allocations: 0.6782 MB / 0.8786 GB, free: 6.617 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003356/1.336, allocations: 0.8827 MB / 0.8794 GB, free: 5.734 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03215/1.369, allocations: 14.89 MB / 0.894 GB, free: 6.516 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003081/1.369, allocations: 15.81 kB / 0.894 GB, free: 6.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001838/1.371, allocations: 395.9 kB / 0.8944 GB, free: 6.113 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006878/1.371, allocations: 0.6873 MB / 0.895 GB, free: 5.422 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2191/1.59, allocations: 12.73 MB / 0.9075 GB, free: 56.95 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06095/1.651, allocations: 48.2 MB / 0.9545 GB, free: 48.29 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01525/1.667, allocations: 28.78 MB / 0.9826 GB, free: 23.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005023/1.667, allocations: 241.7 kB / 0.9829 GB, free: 22.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/1.667, allocations: 78.88 kB / 0.9829 GB, free: 22.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=374): time 6.362e-06/1.667, allocations: 0 / 0.9829 GB, free: 22.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=382): time 0.02326/1.691, allocations: 14.45 MB / 0.9971 GB, free: 16.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/1.691, allocations: 91.81 kB / 0.9971 GB, free: 16.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00404/1.695, allocations: 3.3 MB / 1 GB, free: 15.47 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/1.695, allocations: 88.05 kB / 1 GB, free: 15.39 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/1.696, allocations: 4.079 MB / 1.004 GB, free: 12.33 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007162/1.697, allocations: 1.31 MB / 1.006 GB, free: 11.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/1.697, allocations: 119.8 kB / 1.006 GB, free: 11.23 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002422/1.698, allocations: 0.5473 MB / 1.006 GB, free: 10.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002896/1.701, allocations: 2.553 MB / 1.009 GB, free: 9.867 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00362/1.704, allocations: 5 MB / 1.014 GB, free: 5.711 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004032/1.708, allocations: 3.752 MB / 1.017 GB, free: 4.109 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-05/1.708, allocations: 22.88 kB / 1.017 GB, free: 4.109 MB / 474.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01094/1.719, allocations: 8.552 MB / 1.026 GB, free: 1.176 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.214e-05/1.719, allocations: 37.75 kB / 1.026 GB, free: 1.176 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.515e-05/1.719, allocations: 82.38 kB / 1.026 GB, free: 1.176 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002019/1.721, allocations: 0.8507 MB / 1.027 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004087/1.726, allocations: 1.364 MB / 1.028 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009956/1.736, allocations: 8.471 MB / 1.036 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004276/1.74, allocations: 340.5 kB / 1.037 GB, free: 11.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006931/1.741, allocations: 308.4 kB / 1.037 GB, free: 11.67 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 374 * 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 (722): * Single equations (assignments): 719 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005784/1.746, allocations: 3.514 MB / 1.04 GB, free: 9.965 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000829/1.747, allocations: 414.5 kB / 1.041 GB, free: 9.754 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008507/1.756, allocations: 5.812 MB / 1.046 GB, free: 7.387 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/1.756, allocations: 35.91 kB / 1.046 GB, free: 7.387 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.756, allocations: 10.81 kB / 1.046 GB, free: 7.387 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.052e-05/1.756, allocations: 22.66 kB / 1.047 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/1.778, allocations: 14.6 MB / 1.061 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/1.778, allocations: 4 kB / 1.061 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002664/1.78, allocations: 0.6725 MB / 1.061 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.782, allocations: 0.7105 MB / 1.062 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/1.783, allocations: 82.89 kB / 1.062 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008808/1.791, allocations: 7.596 MB / 1.07 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.791, allocations: 4.031 kB / 1.07 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01969/1.811, allocations: 9.316 MB / 1.079 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.813, allocations: 0.8785 MB / 1.08 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/1.814, allocations: 70.91 kB / 1.08 GB, free: 15.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/1.816, allocations: 195.2 kB / 1.08 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003921/1.816, allocations: 246.9 kB / 1.08 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/1.816, allocations: 108.9 kB / 1.08 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003359/1.82, allocations: 2.465 MB / 1.083 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.3e-07/1.82, allocations: 4 kB / 1.083 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004661/1.824, allocations: 1.603 MB / 1.084 GB, free: 11.02 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * 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 (363): * Single equations (assignments): 360 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000754/1.825, allocations: 0.5429 MB / 1.085 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009006/1.834, allocations: 6.487 MB / 1.091 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.834, allocations: 0 / 1.091 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004026/1.838, allocations: 2.947 MB / 1.094 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003685/1.842, allocations: 0.861 MB / 1.095 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/2.071, allocations: 19.73 MB / 1.114 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004975/2.076, allocations: 6.121 MB / 1.12 GB, free: 89.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005069/2.081, allocations: 1.868 MB / 1.122 GB, free: 89.53 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/2.082, allocations: 349.3 kB / 1.122 GB, free: 89.53 MB / 0.5105 GB Notification: Performance of SimCode: time 6.81e-07/2.082, allocations: 0 / 1.122 GB, free: 89.53 MB / 0.5105 GB Notification: Performance of Templates: time 0.09044/2.173, allocations: 62.05 MB / 1.183 GB, free: 86.32 MB / 0.5105 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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_SMPM_CurrentSource -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.o HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.c In file included from HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.c:7: In file included from ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_model.h:24: ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_functions.h:1140: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.SMPM_CurrentSource_functions.h:1149: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.SMPM_CurrentSource_functions.h:1158: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.SMPM_CurrentSource_functions.h:1167: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.SMPM_CurrentSource.o] Error 1