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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001256/0.001256, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009121/0.0009118, allocations: 99.81 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.000258, allocations: 4 kB / 358 MB, free: 9.402 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2788, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.7134, allocations: 168.6 MB / 0.5646 GB, free: 27.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.7137, allocations: 109.1 kB / 0.5647 GB, free: 27.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.297/2.011, allocations: 409.1 MB / 0.9642 GB, free: 41.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.276e-06/2.011, allocations: 3.094 kB / 0.9642 GB, free: 41.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001384/2.012, allocations: 263 kB / 0.9645 GB, free: 41.89 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.04476/2.057, allocations: 10.96 MB / 0.9752 GB, free: 38.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/2.057, allocations: 6.719 kB / 0.9752 GB, free: 38.16 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01152/2.069, allocations: 1.761 MB / 0.9769 GB, free: 37.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02386/2.093, allocations: 3.797 MB / 0.9806 GB, free: 36.39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03148/2.124, allocations: 8.943 MB / 0.9893 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001078/2.125, allocations: 0.8093 MB / 0.9901 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006789/2.132, allocations: 1.066 MB / 0.9912 GB, free: 31.11 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04958/2.182, allocations: 16.43 MB / 1.007 GB, free: 16.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005981/2.182, allocations: 23.59 kB / 1.007 GB, free: 16.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003804/2.186, allocations: 460.9 kB / 1.008 GB, free: 16.45 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007166/2.187, allocations: 0.7092 MB / 1.008 GB, free: 15.81 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03397/2.221, allocations: 13.78 MB / 1.022 GB, free: 2.164 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4219/2.643, allocations: 57.11 MB / 1.078 GB, free: 26.89 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02133/2.664, allocations: 21.59 MB / 1.099 GB, free: 26.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02403/2.688, allocations: 10.35 MB / 1.109 GB, free: 23.61 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.953e-05/2.689, allocations: 68 kB / 1.109 GB, free: 23.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=333): time 7.444e-06/2.689, allocations: 3.406 kB / 1.109 GB, free: 23.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=360): time 0.03979/2.728, allocations: 17.56 MB / 1.126 GB, free: 15.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/2.728, allocations: 116 kB / 1.126 GB, free: 14.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/2.739, allocations: 4.494 MB / 1.13 GB, free: 13.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008595/2.74, allocations: 90.61 kB / 1.131 GB, free: 13.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003207/2.743, allocations: 5.114 MB / 1.136 GB, free: 9.449 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001382/2.744, allocations: 1.261 MB / 1.137 GB, free: 8.488 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009033/2.745, allocations: 123.2 kB / 1.137 GB, free: 8.391 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000635/2.746, allocations: 0.5551 MB / 1.137 GB, free: 7.973 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004775/2.751, allocations: 2.713 MB / 1.14 GB, free: 6.957 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006884/2.758, allocations: 5.391 MB / 1.145 GB, free: 2.461 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007491/2.765, allocations: 3.871 MB / 1.149 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/2.765, allocations: 26.91 kB / 1.149 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.01981/2.785, allocations: 9.379 MB / 1.158 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002153/2.785, allocations: 44.06 kB / 1.158 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002826/2.786, allocations: 94.03 kB / 1.158 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002665/2.788, allocations: 0.93 MB / 1.159 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00558/2.794, allocations: 1.486 MB / 1.161 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/2.806, allocations: 9.941 MB / 1.171 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006529/2.813, allocations: 442.2 kB / 1.171 GB, free: 6.289 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001609/2.814, allocations: 329.9 kB / 1.171 GB, free: 6.238 MB / 0.4948 GB 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.009599/2.824, allocations: 3.743 MB / 1.175 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001753/2.826, allocations: 0.5029 MB / 1.175 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01263/2.838, allocations: 6.179 MB / 1.181 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005407/2.844, allocations: 3.23 MB / 1.185 GB, free: 156 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.795e-05/2.844, allocations: 10.88 kB / 1.185 GB, free: 156 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-05/2.844, allocations: 21.44 kB / 1.185 GB, free: 152 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04203/2.886, allocations: 15.29 MB / 1.2 GB, free: 7.254 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/2.886, allocations: 4 kB / 1.2 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/2.889, allocations: 0.6367 MB / 1.2 GB, free: 6.727 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002479/2.892, allocations: 0.8953 MB / 1.201 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004552/2.892, allocations: 79.45 kB / 1.201 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2947/3.187, allocations: 13.09 MB / 1.214 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/3.187, allocations: 7.188 kB / 1.214 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/3.2, allocations: 9.712 MB / 1.223 GB, free: 78.47 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00299/3.203, allocations: 1.021 MB / 1.224 GB, free: 78.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/3.204, allocations: 76.81 kB / 1.224 GB, free: 78.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/3.207, allocations: 221.9 kB / 1.225 GB, free: 78.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005928/3.207, allocations: 267.1 kB / 1.225 GB, free: 78.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002511/3.208, allocations: 105.2 kB / 1.225 GB, free: 78.37 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004965/3.213, allocations: 3.335 MB / 1.228 GB, free: 78.19 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.3e-07/3.213, allocations: 0 / 1.228 GB, free: 78.19 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007424/3.22, allocations: 1.869 MB / 1.23 GB, free: 78.19 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.01291/3.233, allocations: 11.67 MB / 1.242 GB, free: 75.09 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01063/3.244, allocations: 7.054 MB / 1.248 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/3.244, allocations: 6.812 kB / 1.248 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005124/3.249, allocations: 3.538 MB / 1.252 GB, free: 73.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004992/3.254, allocations: 1.071 MB / 1.253 GB, free: 73.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1245/3.378, allocations: 118.4 MB / 1.369 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/3.389, allocations: 6.763 MB / 1.375 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008085/3.397, allocations: 1.835 MB / 1.377 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01372/3.411, allocations: 4.479 MB / 1.381 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of SimCode: time 7.143e-06/3.411, allocations: 0 / 1.381 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5321/3.943, allocations: 141.9 MB / 1.52 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/3.943, allocations: 264.7 kB / 1.52 GB, free: 99.22 MB / 0.5417 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_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: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_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:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_functions.h:1246: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:1255: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:1264: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.o] Error 1