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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001052/0.001052, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.375/1.375, 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.0009045/0.0009045, allocations: 86.03 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003196, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.297, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.7703, allocations: 164 MB / 0.5523 GB, free: 41.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.7706, allocations: 111.6 kB / 0.5524 GB, free: 41.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393/2.164, allocations: 386.5 MB / 0.9299 GB, free: 37 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.375e-06/2.164, allocations: 0 / 0.9299 GB, free: 37 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001669/2.165, allocations: 293.4 kB / 0.9302 GB, free: 36.97 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04717/2.213, allocations: 11.7 MB / 0.9416 GB, free: 33.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/2.213, allocations: 11.25 kB / 0.9416 GB, free: 33.02 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01011/2.223, allocations: 1.756 MB / 0.9433 GB, free: 32.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02665/2.249, allocations: 4.507 MB / 0.9477 GB, free: 32.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/2.278, allocations: 9.576 MB / 0.9571 GB, free: 27.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/2.28, allocations: 0.8907 MB / 0.9579 GB, free: 26.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006473/2.286, allocations: 1.192 MB / 0.9591 GB, free: 25.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06015/2.346, allocations: 18.78 MB / 0.9774 GB, free: 9.188 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007891/2.347, allocations: 19.75 kB / 0.9775 GB, free: 9.168 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00536/2.352, allocations: 0.5172 MB / 0.978 GB, free: 8.664 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001273/2.354, allocations: 0.821 MB / 0.9788 GB, free: 7.938 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04329/2.397, allocations: 15.79 MB / 0.9942 GB, free: 8.375 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.471/2.868, allocations: 61.01 MB / 1.054 GB, free: 36.62 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02766/2.896, allocations: 33.08 MB / 1.086 GB, free: 24.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01947/2.915, allocations: 8.886 MB / 1.095 GB, free: 23.83 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.894e-05/2.916, allocations: 75.59 kB / 1.095 GB, free: 23.78 MB / 490.7 MB Notification: Performance of pre-optimization done (n=373): time 6.322e-06/2.916, allocations: 0 / 1.095 GB, free: 23.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=415): time 0.03938/2.955, allocations: 18.2 MB / 1.113 GB, free: 18.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/2.955, allocations: 94.84 kB / 1.113 GB, free: 18.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008496/2.964, allocations: 4.527 MB / 1.117 GB, free: 16.49 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001002/2.965, allocations: 91.55 kB / 1.117 GB, free: 16.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003813/2.968, allocations: 5.605 MB / 1.123 GB, free: 12.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/2.97, allocations: 1.438 MB / 1.124 GB, free: 11.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004645/2.971, allocations: 140.5 kB / 1.124 GB, free: 10.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004332/2.971, allocations: 0.5878 MB / 1.125 GB, free: 10.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004201/2.975, allocations: 2.938 MB / 1.128 GB, free: 9.434 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006177/2.982, allocations: 6.029 MB / 1.134 GB, free: 4.223 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007478/2.989, allocations: 4.303 MB / 1.138 GB, free: 2.352 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/2.989, allocations: 29.16 kB / 1.138 GB, free: 2.352 MB / 490.7 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02158/3.011, allocations: 10.08 MB / 1.148 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/3.011, allocations: 53.27 kB / 1.148 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/3.011, allocations: 104.6 kB / 1.148 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/3.014, allocations: 0.9464 MB / 1.149 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006962/3.021, allocations: 1.651 MB / 1.15 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/3.033, allocations: 9.655 MB / 1.16 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008092/3.041, allocations: 426.8 kB / 1.16 GB, free: 7.758 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001883/3.043, allocations: 369.5 kB / 1.16 GB, free: 7.703 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 (853): * Single equations (assignments): 847 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.012/3.055, allocations: 4.313 MB / 1.165 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001885/3.057, allocations: 0.5393 MB / 1.165 GB, free: 5.281 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/3.07, allocations: 6.663 MB / 1.172 GB, free: 84 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.084e-05/3.07, allocations: 48 kB / 1.172 GB, free: 36 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/3.07, allocations: 17.16 kB / 1.172 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.854e-05/3.07, allocations: 20.67 kB / 1.172 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03917/3.109, allocations: 16.22 MB / 1.188 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/3.109, allocations: 4 kB / 1.188 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003913/3.113, allocations: 0.7885 MB / 1.188 GB, free: 2.109 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00237/3.115, allocations: 0.7807 MB / 1.189 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000721/3.116, allocations: 92.12 kB / 1.189 GB, free: 1.418 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3811/3.497, allocations: 8.798 MB / 1.198 GB, free: 93.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/3.497, allocations: 8.344 kB / 1.198 GB, free: 93.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01751/3.515, allocations: 10.22 MB / 1.208 GB, free: 92.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004277/3.519, allocations: 1.096 MB / 1.209 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00175/3.521, allocations: 77.44 kB / 1.209 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003293/3.524, allocations: 242.6 kB / 1.209 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000611/3.525, allocations: 283.3 kB / 1.209 GB, free: 92.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002662/3.525, allocations: 116.7 kB / 1.21 GB, free: 92.67 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006056/3.531, allocations: 3.364 MB / 1.213 GB, free: 92.49 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/3.531, allocations: 0 / 1.213 GB, free: 92.49 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009877/3.541, allocations: 2 MB / 1.215 GB, free: 92.49 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (395): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01493/3.556, allocations: 12.13 MB / 1.227 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01143/3.568, allocations: 7.813 MB / 1.234 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/3.568, allocations: 0 / 1.234 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005349/3.573, allocations: 3.6 MB / 1.238 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006634/3.58, allocations: 1.262 MB / 1.239 GB, free: 88.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1462/3.726, allocations: 133.5 MB / 1.369 GB, free: 2.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3674/4.093, allocations: 7.662 MB / 1.377 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009282/4.103, allocations: 2.191 MB / 1.379 GB, free: 111 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008648/4.111, allocations: 4.465 MB / 1.383 GB, free: 111 MB / 0.5261 GB Notification: Performance of SimCode: time 1.132e-06/4.111, allocations: 0 / 1.383 GB, free: 111 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2383/4.35, allocations: 154.7 MB / 1.535 GB, free: 35.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/4.35, allocations: 268.2 kB / 1.535 GB, free: 34.67 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_CurrentSource.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_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_CurrentSource.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_functions.h:1391:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_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_CurrentSource_functions.h:1400: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_SMPM_CurrentSource_functions.h:1409: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); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_functions.h:1418:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 4 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.o] Error 1