Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0007808/0.0007808, allocations: 98.69 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002679, allocations: 15.94 kB / 351.1 MB, free: 15.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2607, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3852/0.6459, allocations: 133.4 MB / 0.5224 GB, free: 52.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.6462, allocations: 108.7 kB / 0.5225 GB, free: 52.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.113/1.759, allocations: 352.2 MB / 0.8664 GB, free: 51.17 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.759, allocations: 0 / 0.8664 GB, free: 51.17 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006429/1.76, allocations: 218.6 kB / 0.8666 GB, free: 51.15 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03494/1.795, allocations: 10.01 MB / 0.8764 GB, free: 48.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.795, allocations: 7.5 kB / 0.8764 GB, free: 48.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02307/1.818, allocations: 4.304 MB / 0.8806 GB, free: 47.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02156/1.84, allocations: 8.439 MB / 0.8888 GB, free: 46.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009356/1.841, allocations: 0.6915 MB / 0.8895 GB, free: 46.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004469/1.845, allocations: 0.9025 MB / 0.8904 GB, free: 46.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04632/1.891, allocations: 15.96 MB / 0.9059 GB, free: 45.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006138/1.892, allocations: 15.72 kB / 0.906 GB, free: 45.33 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004337/1.897, allocations: 401.2 kB / 0.9063 GB, free: 45.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001045/1.898, allocations: 0.75 MB / 0.9071 GB, free: 45.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03607/1.934, allocations: 14.07 MB / 0.9208 GB, free: 42.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/2.041, allocations: 52.52 MB / 0.9721 GB, free: 8.246 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02416/2.065, allocations: 20.1 MB / 0.9917 GB, free: 3.672 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008887/2.066, allocations: 178.4 kB / 0.9919 GB, free: 3.508 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001122/2.066, allocations: 86.03 kB / 0.992 GB, free: 3.414 MB / 474.7 MB Notification: Performance of pre-optimization done (n=453): time 7.173e-06/2.066, allocations: 0 / 0.992 GB, free: 3.414 MB / 474.7 MB Notification: Performance of matching and sorting (n=458): time 0.346/2.412, allocations: 20.97 MB / 1.012 GB, free: 63.67 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/2.413, allocations: 98.22 kB / 1.013 GB, free: 63.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006357/2.419, allocations: 3.966 MB / 1.016 GB, free: 63.28 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001042/2.42, allocations: 99.67 kB / 1.017 GB, free: 63.25 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/2.423, allocations: 4.191 MB / 1.021 GB, free: 61.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001927/2.424, allocations: 1.55 MB / 1.022 GB, free: 60.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003998/2.425, allocations: 124.1 kB / 1.022 GB, free: 60.29 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003882/2.425, allocations: 0.5539 MB / 1.023 GB, free: 59.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004567/2.43, allocations: 3.074 MB / 1.026 GB, free: 59.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005648/2.436, allocations: 5.19 MB / 1.031 GB, free: 57.44 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006492/2.442, allocations: 4.262 MB / 1.035 GB, free: 57.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.781e-05/2.442, allocations: 18.47 kB / 1.035 GB, free: 57.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01787/2.46, allocations: 9.852 MB / 1.045 GB, free: 56.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.723e-05/2.46, allocations: 41.47 kB / 1.045 GB, free: 56.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/2.46, allocations: 67.69 kB / 1.045 GB, free: 56.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003497/2.464, allocations: 1.394 MB / 1.046 GB, free: 56.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005614/2.469, allocations: 1.38 MB / 1.047 GB, free: 56.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/2.487, allocations: 11.97 MB / 1.059 GB, free: 53.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006609/2.494, allocations: 358.5 kB / 1.06 GB, free: 53.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/2.496, allocations: 295.7 kB / 1.06 GB, free: 53.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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 (723): * Single equations (assignments): 717 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008719/2.504, allocations: 3.889 MB / 1.064 GB, free: 53.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00168/2.506, allocations: 457.6 kB / 1.064 GB, free: 53.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01366/2.52, allocations: 8.579 MB / 1.072 GB, free: 51.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008923/2.529, allocations: 6.279 MB / 1.079 GB, free: 48.72 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/2.529, allocations: 13.12 kB / 1.079 GB, free: 48.72 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.548e-05/2.529, allocations: 20.72 kB / 1.079 GB, free: 48.72 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03144/2.56, allocations: 17.93 MB / 1.096 GB, free: 41.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/2.56, allocations: 7.344 kB / 1.096 GB, free: 41.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/2.563, allocations: 0.7906 MB / 1.097 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003222/2.567, allocations: 1.266 MB / 1.098 GB, free: 40.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004576/2.567, allocations: 101.3 kB / 1.098 GB, free: 40.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/2.58, allocations: 10.88 MB / 1.109 GB, free: 34.35 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/2.58, allocations: 12.16 kB / 1.109 GB, free: 34.35 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/2.597, allocations: 12.02 MB / 1.121 GB, free: 25.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003617/2.601, allocations: 1.132 MB / 1.122 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/2.602, allocations: 94.67 kB / 1.122 GB, free: 24.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00253/2.604, allocations: 241.4 kB / 1.122 GB, free: 24.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006769/2.605, allocations: 325.8 kB / 1.122 GB, free: 24.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/2.605, allocations: 139.3 kB / 1.122 GB, free: 24.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004485/2.61, allocations: 3.028 MB / 1.125 GB, free: 21.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.11e-07/2.61, allocations: 4 kB / 1.125 GB, free: 21.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00775/2.618, allocations: 1.787 MB / 1.127 GB, free: 19.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (418): * Single equations (assignments): 412 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001883/2.619, allocations: 0.8128 MB / 1.128 GB, free: 19.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0132/2.633, allocations: 8 MB / 1.136 GB, free: 12.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.633, allocations: 0 / 1.136 GB, free: 12.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006812/2.64, allocations: 3.998 MB / 1.14 GB, free: 8.969 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005549/2.645, allocations: 0.9217 MB / 1.141 GB, free: 8.246 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04545/2.691, allocations: 22.1 MB / 1.162 GB, free: 4.043 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01892/2.71, allocations: 7.062 MB / 1.169 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009616/2.719, allocations: 2.141 MB / 1.171 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002361/2.722, allocations: 383.5 kB / 1.172 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.002e-06/2.722, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of Templates: time 0.4472/3.169, allocations: 73.32 MB / 1.243 GB, free: 80.52 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses -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 Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_functions.h:1053:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_functions.h:1062:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.o] Error 1