Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 180.9 kB / 16.38 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.413/1.413, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.001202/0.001202, allocations: 97.8 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003202/0.0003201, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3001, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4654/0.7655, allocations: 167.7 MB / 0.5559 GB, free: 39.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.7659, allocations: 108 kB / 0.556 GB, free: 39.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.397/2.163, allocations: 391.7 MB / 0.9386 GB, free: 38.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.399e-06/2.163, allocations: 0 / 0.9386 GB, free: 38.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001297/2.164, allocations: 261.5 kB / 0.9388 GB, free: 38.31 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: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04657/2.211, allocations: 10.89 MB / 0.9495 GB, free: 33.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.226e-05/2.211, allocations: 10.84 kB / 0.9495 GB, free: 33.78 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01078/2.222, allocations: 1.758 MB / 0.9512 GB, free: 32.92 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02354/2.245, allocations: 3.757 MB / 0.9549 GB, free: 32.01 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02758/2.273, allocations: 8.939 MB / 0.9636 GB, free: 26.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001247/2.274, allocations: 0.8055 MB / 0.9644 GB, free: 25.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005974/2.28, allocations: 1.06 MB / 0.9654 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04713/2.328, allocations: 16.44 MB / 0.9815 GB, free: 9.152 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006719/2.328, allocations: 15.89 kB / 0.9815 GB, free: 9.137 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004628/2.333, allocations: 468.5 kB / 0.9819 GB, free: 8.688 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001001/2.334, allocations: 0.7139 MB / 0.9826 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03787/2.372, allocations: 13.78 MB / 0.9961 GB, free: 10.17 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.475/2.847, allocations: 55.47 MB / 1.05 GB, free: 36.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/2.866, allocations: 21.28 MB / 1.071 GB, free: 35.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02124/2.887, allocations: 9.814 MB / 1.081 GB, free: 34.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.565e-05/2.887, allocations: 68.22 kB / 1.081 GB, free: 34.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=333): time 6.122e-06/2.887, allocations: 2.312 kB / 1.081 GB, free: 34.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=360): time 0.03913/2.926, allocations: 17.55 MB / 1.098 GB, free: 30.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/2.926, allocations: 114.5 kB / 1.098 GB, free: 30.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00823/2.935, allocations: 4.488 MB / 1.102 GB, free: 29.77 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008579/2.936, allocations: 85.58 kB / 1.102 GB, free: 29.74 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003364/2.939, allocations: 5.108 MB / 1.107 GB, free: 26.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002199/2.941, allocations: 1.253 MB / 1.109 GB, free: 25.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004886/2.942, allocations: 124.5 kB / 1.109 GB, free: 25.83 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004774/2.942, allocations: 0.5607 MB / 1.109 GB, free: 25.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004295/2.946, allocations: 2.708 MB / 1.112 GB, free: 24.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005274/2.952, allocations: 5.396 MB / 1.117 GB, free: 19.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005744/2.957, allocations: 3.866 MB / 1.121 GB, free: 18.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.542e-05/2.958, allocations: 25.88 kB / 1.121 GB, free: 18.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.01805/2.976, allocations: 9.317 MB / 1.13 GB, free: 14.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/2.976, allocations: 43.06 kB / 1.13 GB, free: 14.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/2.976, allocations: 95.09 kB / 1.13 GB, free: 14.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002451/2.979, allocations: 0.927 MB / 1.131 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006342/2.985, allocations: 1.488 MB / 1.133 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/2.997, allocations: 9.927 MB / 1.142 GB, free: 7.629 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007401/3.004, allocations: 437.4 kB / 1.143 GB, free: 7.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/3.006, allocations: 330.5 kB / 1.143 GB, free: 7.449 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (765): * Single equations (assignments): 757 * 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 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01118/3.017, allocations: 3.749 MB / 1.147 GB, free: 5.539 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002422/3.02, allocations: 0.5023 MB / 1.147 GB, free: 5.273 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/3.037, allocations: 6.174 MB / 1.153 GB, free: 2.621 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005616/3.042, allocations: 3.217 MB / 1.156 GB, free: 1.367 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.712e-05/3.042, allocations: 17.09 kB / 1.156 GB, free: 1.367 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.069e-05/3.043, allocations: 21.61 kB / 1.156 GB, free: 1.367 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03824/3.081, allocations: 15.16 MB / 1.171 GB, free: 6.836 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/3.081, allocations: 4 kB / 1.171 GB, free: 6.832 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/3.084, allocations: 0.6316 MB / 1.172 GB, free: 6.309 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002593/3.087, allocations: 0.895 MB / 1.173 GB, free: 5.613 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007238/3.087, allocations: 86.23 kB / 1.173 GB, free: 5.535 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0159/3.103, allocations: 13.09 MB / 1.186 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/3.103, allocations: 8 kB / 1.186 GB, free: 8.832 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3908/3.494, allocations: 9.699 MB / 1.195 GB, free: 94.18 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00471/3.499, allocations: 1.025 MB / 1.196 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/3.501, allocations: 67.97 kB / 1.196 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004182/3.505, allocations: 224.2 kB / 1.196 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006808/3.506, allocations: 267.1 kB / 1.197 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00025/3.506, allocations: 111.6 kB / 1.197 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006894/3.513, allocations: 3.328 MB / 1.2 GB, free: 93.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/3.513, allocations: 3.062 kB / 1.2 GB, free: 93.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01203/3.525, allocations: 1.867 MB / 1.202 GB, free: 93.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (315): * Single equations (assignments): 306 * 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 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02079/3.546, allocations: 11.66 MB / 1.213 GB, free: 90.86 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01311/3.559, allocations: 7.068 MB / 1.22 GB, free: 90.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/3.559, allocations: 0 / 1.22 GB, free: 90.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006668/3.566, allocations: 3.533 MB / 1.223 GB, free: 89.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007616/3.573, allocations: 1.068 MB / 1.225 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1557/3.729, allocations: 118.1 MB / 1.34 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01512/3.744, allocations: 6.756 MB / 1.346 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009443/3.754, allocations: 1.835 MB / 1.348 GB, free: 17.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008583/3.762, allocations: 3.938 MB / 1.352 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.172e-06/3.763, allocations: 0 / 1.352 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5908/4.353, allocations: 142 MB / 1.491 GB, free: 98.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/4.354, allocations: 262.7 kB / 1.491 GB, free: 97.93 MB / 0.5261 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_functions.h:1245: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_functions.h:1254: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_functions.h:1263: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); ^ 2 warnings and 3 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.o] Error 1