Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 227.2 MB / 245 MB, free: 7.562 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008776/0.0008778, allocations: 98.81 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002163, allocations: 4 kB / 358 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2277, allocations: 51.49 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3858/0.6135, allocations: 160 MB / 0.5561 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.6138, allocations: 100.9 kB / 0.5562 GB, free: 34.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.168/1.782, allocations: 405.9 MB / 0.9525 GB, free: 50.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.782, allocations: 3.906 kB / 0.9525 GB, free: 50.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000854/1.783, allocations: 280.9 kB / 0.9528 GB, free: 50.2 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04089/1.824, allocations: 11.93 MB / 0.9645 GB, free: 46.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/1.824, allocations: 6.906 kB / 0.9645 GB, free: 46.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02586/1.849, allocations: 4.619 MB / 0.969 GB, free: 45.58 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0234/1.873, allocations: 9.799 MB / 0.9785 GB, free: 41.42 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008614/1.874, allocations: 0.8767 MB / 0.9794 GB, free: 41.03 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004501/1.878, allocations: 1.159 MB / 0.9805 GB, free: 40.22 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0401/1.918, allocations: 18.56 MB / 0.9987 GB, free: 24.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003326/1.919, allocations: 23.27 kB / 0.9987 GB, free: 24.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002085/1.921, allocations: 0.496 MB / 0.9992 GB, free: 23.66 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005835/1.921, allocations: 0.7999 MB / 0.9999 GB, free: 22.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03409/1.956, allocations: 15.88 MB / 1.015 GB, free: 9.047 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3797/2.335, allocations: 62.56 MB / 1.077 GB, free: 31.51 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0275/2.363, allocations: 30.08 MB / 1.106 GB, free: 40.22 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01895/2.382, allocations: 10.35 MB / 1.116 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/2.382, allocations: 81.23 kB / 1.116 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=420): time 6.532e-06/2.382, allocations: 0 / 1.116 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=430): time 0.04077/2.423, allocations: 21 MB / 1.137 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/2.423, allocations: 120.8 kB / 1.137 GB, free: 27.99 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007594/2.431, allocations: 4.571 MB / 1.141 GB, free: 26.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006959/2.431, allocations: 95.2 kB / 1.141 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002414/2.434, allocations: 5.336 MB / 1.146 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001506/2.435, allocations: 1.485 MB / 1.148 GB, free: 21.04 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003722/2.436, allocations: 130 kB / 1.148 GB, free: 20.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003477/2.436, allocations: 0.5637 MB / 1.149 GB, free: 20.52 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003928/2.44, allocations: 2.935 MB / 1.151 GB, free: 19.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/2.445, allocations: 5.4 MB / 1.157 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005426/2.45, allocations: 4.112 MB / 1.161 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.127e-05/2.45, allocations: 22.28 kB / 1.161 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=843) (initialization): time 0.01504/2.465, allocations: 9.871 MB / 1.17 GB, free: 9.406 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/2.465, allocations: 44.55 kB / 1.17 GB, free: 9.402 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/2.465, allocations: 84.75 kB / 1.171 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002899/2.468, allocations: 1.143 MB / 1.172 GB, free: 9.125 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005116/2.473, allocations: 1.474 MB / 1.173 GB, free: 8.973 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/2.488, allocations: 12.79 MB / 1.186 GB, free: 80 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005813/2.494, allocations: 372.4 kB / 1.186 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/2.495, allocations: 332.4 kB / 1.186 GB, free: 15.91 MB / 0.5105 GB 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 (776): * Single equations (assignments): 767 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008768/2.503, allocations: 4.231 MB / 1.19 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/2.505, allocations: 0.5358 MB / 1.191 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/2.517, allocations: 7.306 MB / 1.198 GB, free: 6.727 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006574/2.524, allocations: 4.321 MB / 1.202 GB, free: 2.973 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.394e-05/2.524, allocations: 12 kB / 1.202 GB, free: 2.961 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.281e-05/2.524, allocations: 24.61 kB / 1.202 GB, free: 2.961 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03256/2.557, allocations: 17.48 MB / 1.219 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/2.557, allocations: 4 kB / 1.219 GB, free: 4.879 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002941/2.56, allocations: 0.7154 MB / 1.22 GB, free: 4.285 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003205/2.563, allocations: 1.19 MB / 1.221 GB, free: 3.344 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003097/2.563, allocations: 104.6 kB / 1.221 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.307/2.87, allocations: 16.41 MB / 1.237 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/2.87, allocations: 8.281 kB / 1.237 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/2.886, allocations: 11.23 MB / 1.248 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003231/2.889, allocations: 1.15 MB / 1.249 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007588/2.89, allocations: 91.8 kB / 1.25 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002398/2.892, allocations: 229.7 kB / 1.25 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006674/2.893, allocations: 315.2 kB / 1.25 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002507/2.893, allocations: 124.9 kB / 1.25 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005466/2.898, allocations: 3.419 MB / 1.254 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2e-07/2.898, allocations: 0 / 1.254 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006755/2.905, allocations: 2.054 MB / 1.256 GB, free: 100.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (367): * Single equations (assignments): 357 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,51.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/2.906, allocations: 0.7334 MB / 1.256 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01062/2.917, allocations: 7.872 MB / 1.264 GB, free: 99.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/2.917, allocations: 4.625 kB / 1.264 GB, free: 99.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005664/2.923, allocations: 4.179 MB / 1.268 GB, free: 98.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00727/2.93, allocations: 1.322 MB / 1.269 GB, free: 98.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04551/2.975, allocations: 25.41 MB / 1.294 GB, free: 88.55 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.012/2.987, allocations: 7.592 MB / 1.302 GB, free: 87.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008158/2.996, allocations: 2.013 MB / 1.304 GB, free: 87.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/2.998, allocations: 403.7 kB / 1.304 GB, free: 87.29 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/2.998, allocations: 0 / 1.304 GB, free: 87.29 MB / 0.5261 GB Notification: Performance of Templates: time 0.1477/3.145, allocations: 85.11 MB / 1.387 GB, free: 44.45 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=11 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_model.h:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1578: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1587:1: error: unknown type name '_omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.o] Error 1