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.001015/0.001015, allocations: 175.7 kB / 17.4 MB, free: 4.418 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.295/1.295, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0007446/0.0007445, allocations: 99.27 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 12 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.213, allocations: 50.4 MB / 402.8 MB, free: 32.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.5492, allocations: 133.7 MB / 0.5239 GB, free: 92.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.5495, allocations: 105.4 kB / 0.524 GB, free: 92.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.072/1.622, allocations: 348.9 MB / 0.8647 GB, free: 52.21 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.622, allocations: 0 / 0.8647 GB, free: 52.21 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009097/1.623, allocations: 219.6 kB / 0.8649 GB, free: 52.2 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.03385/1.657, allocations: 9.91 MB / 0.8746 GB, free: 49.06 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.657, allocations: 11.16 kB / 0.8746 GB, free: 49.06 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02279/1.68, allocations: 4.305 MB / 0.8788 GB, free: 48.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01819/1.698, allocations: 7.835 MB / 0.8864 GB, free: 47.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000643/1.698, allocations: 0.6895 MB / 0.8871 GB, free: 47.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004692/1.703, allocations: 0.9084 MB / 0.888 GB, free: 47.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03596/1.739, allocations: 16.03 MB / 0.9036 GB, free: 46.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002666/1.739, allocations: 22.47 kB / 0.9037 GB, free: 46.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001488/1.741, allocations: 402.4 kB / 0.904 GB, free: 46.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006449/1.742, allocations: 0.7451 MB / 0.9048 GB, free: 46.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02771/1.769, allocations: 14.07 MB / 0.9185 GB, free: 42.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08344/1.853, allocations: 52.54 MB / 0.9698 GB, free: 7.262 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/1.872, allocations: 20.11 MB / 0.9895 GB, free: 2.684 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2681/2.14, allocations: 3.719 MB / 0.9931 GB, free: 67.76 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007609/2.141, allocations: 178 kB / 0.9933 GB, free: 67.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/2.141, allocations: 84.73 kB / 0.9933 GB, free: 67.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=453): time 1.813e-05/2.141, allocations: 3 kB / 0.9933 GB, free: 67.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=458): time 0.05203/2.193, allocations: 20.44 MB / 1.013 GB, free: 66.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/2.194, allocations: 103.2 kB / 1.013 GB, free: 66.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007536/2.201, allocations: 4.409 MB / 1.018 GB, free: 65.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009218/2.202, allocations: 101.3 kB / 1.018 GB, free: 65.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002511/2.205, allocations: 4.181 MB / 1.022 GB, free: 63.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001904/2.207, allocations: 1.557 MB / 1.023 GB, free: 62.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003562/2.207, allocations: 122.8 kB / 1.024 GB, free: 62.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003341/2.207, allocations: 0.5508 MB / 1.024 GB, free: 62.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004679/2.212, allocations: 3.064 MB / 1.027 GB, free: 62.38 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005696/2.218, allocations: 5.213 MB / 1.032 GB, free: 59.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/2.229, allocations: 8.882 MB / 1.041 GB, free: 57.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/2.229, allocations: 18.81 kB / 1.041 GB, free: 57.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01878/2.248, allocations: 9.843 MB / 1.05 GB, free: 56.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.691e-05/2.248, allocations: 36.66 kB / 1.05 GB, free: 56.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/2.248, allocations: 67.72 kB / 1.051 GB, free: 56.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00346/2.252, allocations: 1.376 MB / 1.052 GB, free: 56.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0053/2.257, allocations: 1.374 MB / 1.053 GB, free: 56.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/2.272, allocations: 11.64 MB / 1.065 GB, free: 53.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005526/2.277, allocations: 361.2 kB / 1.065 GB, free: 53.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/2.279, allocations: 292.5 kB / 1.065 GB, free: 53.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008078/2.287, allocations: 3.889 MB / 1.069 GB, free: 51.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/2.288, allocations: 462.8 kB / 1.069 GB, free: 50.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/2.301, allocations: 8.545 MB / 1.078 GB, free: 47.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009727/2.311, allocations: 6.261 MB / 1.084 GB, free: 45.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/2.311, allocations: 10.31 kB / 1.084 GB, free: 45.09 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-05/2.311, allocations: 21.75 kB / 1.084 GB, free: 45.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0319/2.343, allocations: 17.95 MB / 1.101 GB, free: 37.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/2.343, allocations: 7.406 kB / 1.101 GB, free: 37.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003035/2.346, allocations: 0.7999 MB / 1.102 GB, free: 37.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003092/2.349, allocations: 1.252 MB / 1.103 GB, free: 37.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005939/2.35, allocations: 102.6 kB / 1.104 GB, free: 37.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/2.362, allocations: 10.58 MB / 1.114 GB, free: 28.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/2.362, allocations: 8 kB / 1.114 GB, free: 28.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/2.378, allocations: 11.27 MB / 1.125 GB, free: 18.21 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002528/2.38, allocations: 1.14 MB / 1.126 GB, free: 17.17 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007316/2.381, allocations: 84 kB / 1.126 GB, free: 17.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/2.383, allocations: 252.1 kB / 1.126 GB, free: 16.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00063/2.384, allocations: 333.8 kB / 1.127 GB, free: 16.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/2.384, allocations: 137.9 kB / 1.127 GB, free: 16.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004238/2.388, allocations: 3.034 MB / 1.13 GB, free: 14.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.1e-07/2.388, allocations: 0 / 1.13 GB, free: 14.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006943/2.395, allocations: 1.787 MB / 1.132 GB, free: 12.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (420): * Single equations (assignments): 414 * 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,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001607/2.397, allocations: 0.8117 MB / 1.132 GB, free: 11.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01192/2.409, allocations: 7.98 MB / 1.14 GB, free: 4.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/2.409, allocations: 0 / 1.14 GB, free: 4.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006535/2.415, allocations: 3.964 MB / 1.144 GB, free: 1.281 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009402/2.425, allocations: 0.9927 MB / 1.145 GB, free: 496 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03881/2.464, allocations: 21.57 MB / 1.166 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2617/2.725, allocations: 6.574 MB / 1.172 GB, free: 86.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007058/2.732, allocations: 2.143 MB / 1.175 GB, free: 86.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/2.734, allocations: 384.5 kB / 1.175 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of SimCode: time 1.704e-06/2.734, allocations: 0 / 1.175 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.1221/2.856, allocations: 73.85 MB / 1.247 GB, free: 82.38 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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_functions.h:987: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:996: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