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.SMPM_Mains.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.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 180.9 kB / 16.39 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.485/1.485, 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.0009023/0.0009022, allocations: 87.64 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003388, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2935, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.7818, allocations: 159 MB / 0.5475 GB, free: 43.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.7821, allocations: 105.9 kB / 0.5476 GB, free: 43.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.356/2.138, allocations: 387.8 MB / 0.9263 GB, free: 44.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.544e-06/2.138, allocations: 0 / 0.9263 GB, free: 44.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00137/2.14, allocations: 280.8 kB / 0.9265 GB, free: 44.88 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.0517/2.192, allocations: 11.87 MB / 0.9381 GB, free: 40.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/2.192, allocations: 10.84 kB / 0.9381 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01067/2.202, allocations: 1.938 MB / 0.94 GB, free: 40.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02797/2.23, allocations: 4.583 MB / 0.9445 GB, free: 39.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02854/2.259, allocations: 9.785 MB / 0.954 GB, free: 33.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001164/2.26, allocations: 0.8779 MB / 0.9549 GB, free: 32.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00624/2.266, allocations: 1.163 MB / 0.956 GB, free: 31.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05396/2.32, allocations: 18.56 MB / 0.9742 GB, free: 15.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006161/2.321, allocations: 30.75 kB / 0.9742 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004553/2.326, allocations: 0.4964 MB / 0.9747 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001132/2.327, allocations: 0.7981 MB / 0.9755 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04224/2.369, allocations: 15.88 MB / 0.991 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4914/2.86, allocations: 61.26 MB / 1.051 GB, free: 39.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0333/2.894, allocations: 29.76 MB / 1.08 GB, free: 32.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/2.921, allocations: 10.08 MB / 1.09 GB, free: 31.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001241/2.921, allocations: 78.69 kB / 1.09 GB, free: 31.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=420): time 9.588e-06/2.921, allocations: 0 / 1.09 GB, free: 31.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=430): time 0.05504/2.976, allocations: 20.98 MB / 1.11 GB, free: 25.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/2.977, allocations: 127.1 kB / 1.11 GB, free: 25.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/2.988, allocations: 4.552 MB / 1.115 GB, free: 23.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001078/2.989, allocations: 95.3 kB / 1.115 GB, free: 23.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004138/2.993, allocations: 5.325 MB / 1.12 GB, free: 19.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/2.995, allocations: 1.486 MB / 1.122 GB, free: 18.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/2.997, allocations: 132.3 kB / 1.122 GB, free: 18.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007775/2.997, allocations: 0.5643 MB / 1.122 GB, free: 17.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005743/3.003, allocations: 2.943 MB / 1.125 GB, free: 16.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007494/3.011, allocations: 5.396 MB / 1.13 GB, free: 12.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006957/3.018, allocations: 4.109 MB / 1.134 GB, free: 10.45 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/3.018, allocations: 26.56 kB / 1.134 GB, free: 10.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=843) (initialization): time 0.02021/3.038, allocations: 9.858 MB / 1.144 GB, free: 6.691 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/3.038, allocations: 44.81 kB / 1.144 GB, free: 6.691 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001936/3.038, allocations: 80.03 kB / 1.144 GB, free: 6.691 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003424/3.042, allocations: 1.14 MB / 1.145 GB, free: 6.422 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006318/3.048, allocations: 1.478 MB / 1.147 GB, free: 6.266 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/3.065, allocations: 12.79 MB / 1.159 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007176/3.072, allocations: 367.2 kB / 1.16 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001817/3.074, allocations: 323.9 kB / 1.16 GB, free: 13.2 MB / 0.4948 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.01108/3.085, allocations: 4.227 MB / 1.164 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002265/3.087, allocations: 0.5371 MB / 1.165 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/3.105, allocations: 7.336 MB / 1.172 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008129/3.113, allocations: 4.312 MB / 1.176 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-05/3.114, allocations: 12 kB / 1.176 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.399e-05/3.114, allocations: 28 kB / 1.176 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05324/3.167, allocations: 17.78 MB / 1.193 GB, free: 3.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.003e-05/3.167, allocations: 4 kB / 1.193 GB, free: 3.953 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003724/3.171, allocations: 0.7153 MB / 1.194 GB, free: 3.355 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0039/3.175, allocations: 1.2 MB / 1.195 GB, free: 2.414 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007827/3.175, allocations: 99.03 kB / 1.195 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4163/3.592, allocations: 16.49 MB / 1.211 GB, free: 95.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/3.592, allocations: 10.34 kB / 1.211 GB, free: 95.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01906/3.611, allocations: 11.22 MB / 1.222 GB, free: 93.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004057/3.615, allocations: 1.152 MB / 1.223 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001807/3.617, allocations: 91.75 kB / 1.224 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00384/3.621, allocations: 228.3 kB / 1.224 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008463/3.621, allocations: 308.8 kB / 1.224 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/3.622, allocations: 129.3 kB / 1.224 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007618/3.629, allocations: 3.408 MB / 1.228 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/3.629, allocations: 2.688 kB / 1.228 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01204/3.641, allocations: 2.042 MB / 1.23 GB, free: 93.31 MB / 0.5105 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.02468/3.666, allocations: 13.4 MB / 1.243 GB, free: 90.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01567/3.682, allocations: 7.894 MB / 1.25 GB, free: 89.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/3.682, allocations: 0 / 1.25 GB, free: 89.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008798/3.691, allocations: 4.187 MB / 1.254 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/3.701, allocations: 1.298 MB / 1.256 GB, free: 88.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1686/3.87, allocations: 117.7 MB / 1.371 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02036/3.89, allocations: 7.584 MB / 1.378 GB, free: 9.664 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01272/3.903, allocations: 2.001 MB / 1.38 GB, free: 8.348 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01257/3.916, allocations: 4.428 MB / 1.384 GB, free: 4.219 MB / 0.5261 GB Notification: Performance of SimCode: time 4.399e-06/3.916, allocations: 0 / 1.384 GB, free: 4.219 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6263/4.542, allocations: 160.6 MB / 1.541 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/4.542, allocations: 257.1 kB / 1.541 GB, free: 41.29 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_SMPM_Mains.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.c:7: In file included from ./Modelica_4_0_0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_functions.h:1577: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_functions.h:1586: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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.o] Error 1