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.001746/0.001746, allocations: 202.2 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007676/0.0007676, allocations: 98.28 kB / 297.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002257/0.0002257, allocations: 8 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2413, allocations: 51.28 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4638/0.7051, allocations: 160.3 MB / 0.5563 GB, free: 35.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.7054, allocations: 108.7 kB / 0.5564 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.236/1.942, allocations: 403.1 MB / 0.9501 GB, free: 49.71 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.942, allocations: 0 / 0.9501 GB, free: 49.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009604/1.943, allocations: 279.2 kB / 0.9503 GB, free: 49.66 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.0447/1.987, allocations: 11.82 MB / 0.9619 GB, free: 45.72 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.987, allocations: 6.906 kB / 0.9619 GB, free: 45.72 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02585/2.013, allocations: 4.618 MB / 0.9664 GB, free: 45.04 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02523/2.039, allocations: 9.191 MB / 0.9754 GB, free: 42.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001193/2.04, allocations: 0.878 MB / 0.9762 GB, free: 42.06 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005356/2.045, allocations: 1.162 MB / 0.9774 GB, free: 41.68 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04909/2.094, allocations: 18.66 MB / 0.9956 GB, free: 27.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006829/2.095, allocations: 23.84 kB / 0.9956 GB, free: 27.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004519/2.1, allocations: 0.4963 MB / 0.9961 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000901/2.1, allocations: 0.7966 MB / 0.9969 GB, free: 26.39 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04202/2.143, allocations: 15.88 MB / 1.012 GB, free: 12.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4429/2.585, allocations: 62.6 MB / 1.074 GB, free: 43.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03074/2.616, allocations: 30.08 MB / 1.103 GB, free: 36.49 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00686/2.623, allocations: 4.123 MB / 1.107 GB, free: 36.44 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01893/2.642, allocations: 10.24 MB / 1.117 GB, free: 35.18 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.291e-05/2.642, allocations: 76.69 kB / 1.117 GB, free: 35.14 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=412): time 6.663e-06/2.642, allocations: 0 / 1.117 GB, free: 35.14 MB / 0.4949 GB Notification: Performance of matching and sorting (n=422): time 0.04265/2.685, allocations: 20.47 MB / 1.137 GB, free: 28.24 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/2.685, allocations: 121.1 kB / 1.137 GB, free: 28.14 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00959/2.695, allocations: 5.126 MB / 1.142 GB, free: 26.23 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009571/2.696, allocations: 94.23 kB / 1.142 GB, free: 26.15 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003246/2.699, allocations: 5.349 MB / 1.147 GB, free: 22.12 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001974/2.701, allocations: 1.461 MB / 1.149 GB, free: 21 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005627/2.701, allocations: 133.1 kB / 1.149 GB, free: 20.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004358/2.702, allocations: 0.5594 MB / 1.15 GB, free: 20.48 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004364/2.706, allocations: 2.908 MB / 1.152 GB, free: 19.36 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006064/2.712, allocations: 5.398 MB / 1.158 GB, free: 15.01 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/2.723, allocations: 8.856 MB / 1.166 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/2.724, allocations: 22.41 kB / 1.166 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of matching and sorting (n=837) (initialization): time 0.02085/2.744, allocations: 9.803 MB / 1.176 GB, free: 5.016 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/2.745, allocations: 46.03 kB / 1.176 GB, free: 5.012 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001673/2.745, allocations: 80.03 kB / 1.176 GB, free: 5.012 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003254/2.748, allocations: 1.128 MB / 1.177 GB, free: 4.738 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006024/2.754, allocations: 1.463 MB / 1.179 GB, free: 4.586 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/2.771, allocations: 12.52 MB / 1.191 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006947/2.778, allocations: 364.8 kB / 1.191 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001656/2.779, allocations: 324.1 kB / 1.191 GB, free: 11.63 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * 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 (770): * Single equations (assignments): 761 * 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,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01062/2.79, allocations: 4.234 MB / 1.196 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002399/2.792, allocations: 0.5378 MB / 1.196 GB, free: 8.215 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01617/2.809, allocations: 7.204 MB / 1.203 GB, free: 2.082 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0124/2.821, allocations: 4.665 MB / 1.208 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.139e-05/2.821, allocations: 18.73 kB / 1.208 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001165/2.821, allocations: 22.88 kB / 1.208 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03841/2.86, allocations: 17.22 MB / 1.225 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/2.86, allocations: 5.125 kB / 1.225 GB, free: 1.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003047/2.863, allocations: 0.6928 MB / 1.225 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3355/3.198, allocations: 1.281 MB / 1.226 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/3.199, allocations: 101.8 kB / 1.227 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0165/3.216, allocations: 16.08 MB / 1.242 GB, free: 99.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/3.216, allocations: 6.5 kB / 1.242 GB, free: 99.47 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01763/3.234, allocations: 10.44 MB / 1.252 GB, free: 98.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003747/3.237, allocations: 1.139 MB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001975/3.239, allocations: 87.41 kB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003739/3.243, allocations: 225.5 kB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008595/3.244, allocations: 313 kB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002859/3.244, allocations: 120.8 kB / 1.254 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006222/3.251, allocations: 3.428 MB / 1.258 GB, free: 98.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.11e-07/3.251, allocations: 3.906 kB / 1.258 GB, free: 98.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01016/3.261, allocations: 2.047 MB / 1.26 GB, free: 98.32 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 (359): * Single equations (assignments): 349 * 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,50.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.00187/3.263, allocations: 0.7197 MB / 1.26 GB, free: 98.19 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01304/3.276, allocations: 7.798 MB / 1.268 GB, free: 97.46 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/3.276, allocations: 8.672 kB / 1.268 GB, free: 97.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007167/3.283, allocations: 4.147 MB / 1.272 GB, free: 96.69 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01232/3.295, allocations: 1.355 MB / 1.273 GB, free: 96.67 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04435/3.34, allocations: 24.72 MB / 1.297 GB, free: 86.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01457/3.354, allocations: 7.396 MB / 1.305 GB, free: 85.32 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008857/3.363, allocations: 2.008 MB / 1.307 GB, free: 85.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00222/3.365, allocations: 401 kB / 1.307 GB, free: 85.11 MB / 0.5261 GB Notification: Performance of SimCode: time 9.01e-07/3.365, allocations: 0 / 1.307 GB, free: 85.11 MB / 0.5261 GB Notification: Performance of Templates: time 0.14/3.505, allocations: 85.71 MB / 1.391 GB, free: 43.71 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 -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_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:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_functions.h:1476: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:1485: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