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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001032, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008861/0.0008861, allocations: 105.7 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002551/0.0002553, allocations: 4 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2389, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3928/0.6318, allocations: 160 MB / 0.5561 GB, free: 34.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.6321, allocations: 106.3 kB / 0.5562 GB, free: 34.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.329/1.961, allocations: 405.9 MB / 0.9526 GB, free: 50.29 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.105e-06/1.961, allocations: 0 / 0.9526 GB, free: 50.29 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009953/1.962, allocations: 287.6 kB / 0.9529 GB, free: 50.24 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.04034/2.003, allocations: 11.93 MB / 0.9646 GB, free: 46.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/2.003, allocations: 11.28 kB / 0.9646 GB, free: 46.3 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00815/2.011, allocations: 1.932 MB / 0.9665 GB, free: 46.15 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02642/2.037, allocations: 4.616 MB / 0.971 GB, free: 45.47 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0245/2.062, allocations: 9.797 MB / 0.9805 GB, free: 40.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009737/2.063, allocations: 0.8785 MB / 0.9814 GB, free: 39.77 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004522/2.067, allocations: 1.159 MB / 0.9825 GB, free: 38.62 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04468/2.112, allocations: 18.57 MB / 1.001 GB, free: 22.56 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005811/2.113, allocations: 23.75 kB / 1.001 GB, free: 22.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003924/2.117, allocations: 0.4952 MB / 1.001 GB, free: 22.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008192/2.117, allocations: 0.8007 MB / 1.002 GB, free: 21.35 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03654/2.154, allocations: 15.89 MB / 1.017 GB, free: 7.434 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4477/2.602, allocations: 62.58 MB / 1.079 GB, free: 32.08 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02887/2.631, allocations: 30.07 MB / 1.108 GB, free: 40.79 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0206/2.651, allocations: 10.35 MB / 1.118 GB, free: 37.21 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/2.651, allocations: 81.97 kB / 1.118 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=420): time 5.861e-06/2.651, allocations: 4.594 kB / 1.118 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=430): time 0.04297/2.694, allocations: 21 MB / 1.139 GB, free: 27.16 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/2.694, allocations: 120.3 kB / 1.139 GB, free: 27.06 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00849/2.703, allocations: 4.567 MB / 1.143 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009915/2.704, allocations: 96.92 kB / 1.143 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002725/2.707, allocations: 5.33 MB / 1.149 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001764/2.709, allocations: 1.483 MB / 1.15 GB, free: 20.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003887/2.709, allocations: 128.4 kB / 1.15 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004011/2.709, allocations: 0.5666 MB / 1.151 GB, free: 19.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003973/2.713, allocations: 2.939 MB / 1.154 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005166/2.718, allocations: 5.398 MB / 1.159 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005243/2.724, allocations: 4.111 MB / 1.163 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.941e-05/2.724, allocations: 22.75 kB / 1.163 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=843) (initialization): time 0.01722/2.741, allocations: 9.868 MB / 1.172 GB, free: 8.484 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/2.741, allocations: 48.11 kB / 1.172 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/2.741, allocations: 80.12 kB / 1.173 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003253/2.745, allocations: 1.137 MB / 1.174 GB, free: 8.203 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006177/2.751, allocations: 1.479 MB / 1.175 GB, free: 8.047 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/2.768, allocations: 12.8 MB / 1.188 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006704/2.775, allocations: 360.8 kB / 1.188 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001537/2.776, allocations: 327.6 kB / 1.188 GB, free: 14.97 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%) 1,(10,48.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01133/2.788, allocations: 4.236 MB / 1.192 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002347/2.79, allocations: 0.5399 MB / 1.193 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/2.806, allocations: 7.325 MB / 1.2 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007421/2.814, allocations: 4.319 MB / 1.204 GB, free: 1.688 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.647e-05/2.814, allocations: 16 kB / 1.204 GB, free: 1.672 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.411e-05/2.814, allocations: 22.08 kB / 1.204 GB, free: 1.672 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04028/2.854, allocations: 17.71 MB / 1.222 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/2.854, allocations: 7.656 kB / 1.222 GB, free: 4.266 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003069/2.857, allocations: 0.7149 MB / 1.222 GB, free: 3.672 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003493/2.861, allocations: 1.196 MB / 1.224 GB, free: 2.727 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004048/2.861, allocations: 97.77 kB / 1.224 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3545/3.216, allocations: 16.61 MB / 1.24 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/3.216, allocations: 8.531 kB / 1.24 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/3.234, allocations: 11.22 MB / 1.251 GB, free: 99.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003973/3.238, allocations: 1.155 MB / 1.252 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001588/3.239, allocations: 82.88 kB / 1.252 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003519/3.243, allocations: 234.6 kB / 1.252 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007557/3.244, allocations: 309 kB / 1.253 GB, free: 99.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002858/3.244, allocations: 126 kB / 1.253 GB, free: 99.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005686/3.25, allocations: 3.423 MB / 1.256 GB, free: 99.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/3.25, allocations: 0 / 1.256 GB, free: 99.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009701/3.259, allocations: 2.048 MB / 1.258 GB, free: 99.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (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,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.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%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1,(10,51.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01894/3.278, allocations: 13.41 MB / 1.271 GB, free: 95.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01375/3.292, allocations: 7.867 MB / 1.279 GB, free: 95.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/3.292, allocations: 3.188 kB / 1.279 GB, free: 95.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007002/3.299, allocations: 4.185 MB / 1.283 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008022/3.307, allocations: 1.314 MB / 1.284 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1595/3.467, allocations: 118 MB / 1.399 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02147/3.488, allocations: 7.585 MB / 1.407 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008929/3.497, allocations: 2.009 MB / 1.409 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02048/3.518, allocations: 5.128 MB / 1.414 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of SimCode: time 4.718e-06/3.518, allocations: 4 kB / 1.414 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5466/4.064, allocations: 160.6 MB / 1.571 GB, free: 71.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/4.065, allocations: 261.6 kB / 1.571 GB, free: 70.8 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_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: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_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 warnings and 2 errors generated. make: *** [: Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.o] Error 1