Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001863/0.001863, allocations: 200.1 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007687/0.0007687, allocations: 104.5 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002426, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2516, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4138/0.6654, allocations: 169 MB / 0.5648 GB, free: 28.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.6658, allocations: 106.1 kB / 0.5649 GB, free: 28.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.263/1.929, allocations: 406.7 MB / 0.9621 GB, free: 42.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.929, allocations: 0 / 0.9621 GB, free: 42.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001277/1.93, allocations: 263.2 kB / 0.9623 GB, free: 42.21 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: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.03892/1.969, allocations: 10.82 MB / 0.9729 GB, free: 38.53 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/1.969, allocations: 14.66 kB / 0.9729 GB, free: 38.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02158/1.991, allocations: 3.788 MB / 0.9766 GB, free: 37.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02267/2.013, allocations: 8.33 MB / 0.9847 GB, free: 34.65 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001064/2.014, allocations: 0.8091 MB / 0.9855 GB, free: 34.29 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00479/2.019, allocations: 1.061 MB / 0.9866 GB, free: 33.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04368/2.063, allocations: 16.52 MB / 1.003 GB, free: 22.18 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005539/2.064, allocations: 27.45 kB / 1.003 GB, free: 22.15 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003474/2.067, allocations: 460.5 kB / 1.003 GB, free: 21.71 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006372/2.068, allocations: 0.7101 MB / 1.004 GB, free: 21.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03294/2.101, allocations: 13.77 MB / 1.017 GB, free: 8.996 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3682/2.469, allocations: 57.14 MB / 1.073 GB, free: 24.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02086/2.49, allocations: 21.6 MB / 1.094 GB, free: 24.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006198/2.496, allocations: 3.383 MB / 1.097 GB, free: 24.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0184/2.514, allocations: 10.2 MB / 1.107 GB, free: 22.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/2.515, allocations: 66.25 kB / 1.108 GB, free: 22.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=319): time 6.422e-06/2.515, allocations: 3.094 kB / 1.108 GB, free: 22.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=346): time 0.03588/2.55, allocations: 17.01 MB / 1.124 GB, free: 18.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/2.551, allocations: 112.6 kB / 1.124 GB, free: 18.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008383/2.559, allocations: 5.054 MB / 1.129 GB, free: 16.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006566/2.56, allocations: 87.14 kB / 1.129 GB, free: 16.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002736/2.562, allocations: 5.147 MB / 1.134 GB, free: 12.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/2.564, allocations: 1.212 MB / 1.135 GB, free: 12.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004087/2.564, allocations: 124.9 kB / 1.136 GB, free: 11.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003982/2.565, allocations: 0.5539 MB / 1.136 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00393/2.569, allocations: 2.67 MB / 1.139 GB, free: 10.53 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005069/2.574, allocations: 5.381 MB / 1.144 GB, free: 6.004 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/2.584, allocations: 8.49 MB / 1.152 GB, free: 8 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/2.584, allocations: 29.12 kB / 1.152 GB, free: 4 kB / 490.7 MB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01892/2.603, allocations: 9.263 MB / 1.161 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/2.603, allocations: 50.16 kB / 1.161 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/2.603, allocations: 92.16 kB / 1.161 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/2.606, allocations: 0.9231 MB / 1.162 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005883/2.612, allocations: 1.461 MB / 1.164 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/2.625, allocations: 9.737 MB / 1.173 GB, free: 5.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007827/2.632, allocations: 438.2 kB / 1.174 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/2.634, allocations: 333 kB / 1.174 GB, free: 5.199 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * 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 (755): * Single equations (assignments): 747 * 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: 3 * 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: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01039/2.644, allocations: 3.74 MB / 1.178 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001865/2.646, allocations: 0.4989 MB / 1.178 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/2.659, allocations: 6.018 MB / 1.184 GB, free: 464 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005446/2.665, allocations: 3.18 MB / 1.187 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.08e-05/2.665, allocations: 17.62 kB / 1.187 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.505e-05/2.665, allocations: 18 kB / 1.187 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04264/2.708, allocations: 14.88 MB / 1.202 GB, free: 5.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.803e-05/2.708, allocations: 4 kB / 1.202 GB, free: 5.086 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002995/2.711, allocations: 0.5946 MB / 1.202 GB, free: 4.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00262/2.713, allocations: 0.8981 MB / 1.203 GB, free: 3.891 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006219/2.714, allocations: 82.84 kB / 1.203 GB, free: 3.816 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/2.73, allocations: 12.82 MB / 1.216 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.882e-05/2.73, allocations: 7.938 kB / 1.216 GB, free: 7.336 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3321/3.062, allocations: 8.891 MB / 1.224 GB, free: 98.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003364/3.066, allocations: 1.009 MB / 1.225 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/3.067, allocations: 70.78 kB / 1.226 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002903/3.07, allocations: 230.6 kB / 1.226 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006844/3.07, allocations: 257.6 kB / 1.226 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/3.071, allocations: 107 kB / 1.226 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005223/3.076, allocations: 3.341 MB / 1.229 GB, free: 98.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.81e-07/3.076, allocations: 0 / 1.229 GB, free: 98.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007354/3.083, allocations: 1.861 MB / 1.231 GB, free: 98.37 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel,smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re) * 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 (301): * Single equations (assignments): 292 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(8,65.6%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001054/3.084, allocations: 0.5585 MB / 1.232 GB, free: 98.28 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01127/3.096, allocations: 6.941 MB / 1.239 GB, free: 97.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/3.096, allocations: 0 / 1.239 GB, free: 97.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005265/3.101, allocations: 3.445 MB / 1.242 GB, free: 97.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009473/3.11, allocations: 1.115 MB / 1.243 GB, free: 97.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/3.144, allocations: 21.87 MB / 1.264 GB, free: 87.99 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007761/3.151, allocations: 6.57 MB / 1.271 GB, free: 86.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006215/3.158, allocations: 1.834 MB / 1.273 GB, free: 86.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/3.159, allocations: 372.2 kB / 1.273 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.022e-06/3.159, allocations: 0 / 1.273 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.1256/3.284, allocations: 73.06 MB / 1.344 GB, free: 75.96 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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_SMEE_Generator -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_model.h:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_functions.h:1168: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); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_functions.h:1177:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_functions.h:1186:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 3 errors generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.o] Error 1